In this project, we Processed data from RTK-GPS, IMU and encoders to plot the trajectory of a field robot in RViz. The pose and twist of the robot are also published using an Odometry ROS message.
In the PLOTS pdf, Qn 2, we see that when we use IMU+encoders, we get errors in yaw angle due to noise in gyroscope readings. Hence, the trajectory looks like a polygon with sharp changes in yaw which influences the (x,y) position at the subsequent time step(t+1).
Whereas in Qn3, when only GPS is used, we get a straight line trajectory.
See RVIZ_PLOTS pdf for trajectory plots.
- Extract
coding_ex_1.zip
in your~/catkin_ws/src
folder. cd ~/catkin_ws
and thencatkin_make
.- Run
roscore
in Terminal #1. - In Terminal #2,
cd ~/catkin_ws/src/coding_ex_1/scripts
thenrosbag play -l 2020-08-31-00-01-17.bag
- In Terminal #3,
rosrun coding_ex_1 odometry_example_node.py
- In Terminal #4,
rviz
and set "Keep" parameter to 10,000 to see the trajectory. Other parameters in Rviz can be seen as follows: