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. | |
| 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.
| navigator | will be the Robot. |
| position_x | will be X axis. |
| position_y | will be Y axis. |
| rotation_z | will be Z axis. |
| 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)