Optimizing Cleaning Robot's Navigation through Ray Casting Algorithms for Efficient Path Planning
 
Loading...
Searching...
No Matches
custome_commander Namespace Reference

Functions

 create_pose_stamped (navigator, position_x, position_y, rotation_z)
 navigator using x, y, z coordinates.
 
 generate_random_waypoint ()
 random waypoint generator within a given range.
 
 main ()
 Size of the array.
 

Function Documentation

◆ create_pose_stamped()

custome_commander.create_pose_stamped ( navigator,
position_x,
position_y,
rotation_z )

navigator using x, y, z coordinates.

Axis Z will have the robot face in a certain direction.

Parameters
navigatorwill be the Robot.
position_xwill be X axis.
position_ywill be Y axis.
rotation_zwill be Z axis.
 def create_pose_stamped(navigator, position_x, position_y, rotation_z):
Returns
goal_pose.

◆ generate_random_waypoint()

custome_commander.generate_random_waypoint ( )

random waypoint generator within a given range.

See also
create_pose_stamped()
 position_x = random.uniform(-2.0, 2.0)
Returns
position_x. position_y. position_z.

◆ main()

custome_commander.main ( )

Size of the array.

 num_waypoints = 30.
 waypoints = [].

 for _ in range(num_waypoints):.

calls random_waypoint function.

   waypoint = generate_random_waypoint().

adds the waypoint to create_pose_stamped function.

   waypoints.append(create_pose_stamped(nav, *waypoint)).