Question: The Task: Required to program a Turtlebot 3 burger robot to move following a square path using ROS 2 and Python. Your code also needs
The Task:
Required to program a Turtlebot burger robot to move following a square path using ROS and Python. Your code also needs to record the odometry data collected when the robot moves. The recorded data should be used to evaluate your codes and the parameters set in the code. The task is to program and test a differential drive robot to trace out a square trajectory. The square tracing robot should move along a square trajectory with the length of meter. The robot should start from with a heading of degree, move forward meter and stop at Then it should turn degrees, move forward meter, and stop at Next it should turn degrees, move forward meter, and stop at Finally, it should turn degrees, move forward meter, and stop at You need to use in the code. Then the distance will be
You should use appropriate methods in ROS and its dependent packages to control the robot to move. You also need to use appropriate methods in ROS and its dependent packages to keep the track of the robot pose. When you collect the odometry data, only four points at the corners are not enough to show the square trajectory. More data points should be sampled. The robot should be displayed in Rviz when the robot is moving and also its pose should be recorded in a data file. After completing the square, you can use the data file to draw a trajectory in Microsoft Excel or other tools. More than one trial with different speeds are required. The robot can be controlled by varying the translational and rotational velocities. This is implemented by publishing cmdvel" topic with "Twist" message to the robot. You need to find a way to control the robot to move towards corner goal positions and turn degrees on the spot. This part of your code is called the position controller. Your code can subscribe to odom topic with "Odometry" message to obtain the odometry data when the robot is moving. There are two parts in Odometry message: pose and twist. We need to access the pose information, which includes position x yz and orientation in quaternion. For a ground D robot, we need to use position x y and heading which can be computed from quaternion.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
