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

Functions

 create_pose_stamped (navigator, position_x, position_y, rotation_z)
 navigator using x, y, z coordinates.
 
 main ()
 These are individual coordinates based on the size of a room.
 

Function Documentation

◆ create_pose_stamped()

commander_template.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.
Returns
goal_pose.

◆ main()

commander_template.main ( )

These are individual coordinates based on the size of a room.

 goal_pose1 = create_pose_stamped(nav, -1.99, -3.02, 0.070)
 goal_pose2 = create_pose_stamped(nav, -2.31, -2.81, 0.0023)
 goal_pose3 = create_pose_stamped(nav, -0.197, 0.026, 0.0044)

Takes the previous coordinates and puts them in the array to use.

 waypoints = [goal_pose1, goal_pose2, goal_pose3]
 for i in range(10):
 nav.followWaypoints(waypoints)