Create a robot scenario.
Add the ground plane and a box as meshes.
Create a waypoint trajectory for the robot platform using an ENU reference frame.
Create a rigidBodyTree
object of the TurtleBot 3 Waffle Pi robot with loadrobot
.
Create a robot platform with trajectory.
Set up platform mesh with the rigidBodyTree
object.
Create an INS sensor object and attach the sensor to the platform.
Visualize the scenario.
In a loop, step through the trajectory to output the position, orientation, velocity, acceleration, and angular velocity.
Create a line plot for the trajectory. First create the plot with plot3
, then manually modify the data source properties of the plot. This improves the performance of the plotting.
Set up the simulation. Then, iterate through the positions and show the scene each time the INS sensor updates. Advance the scene, move the robot platform, and update the sensors.