Professional Documents
Culture Documents
O UTLINE
1
ROS 2 on Multiple Machines
ROS 2 on Multiple Machines ROS2 Bag: Recording and playing ROS data ROS2: Next Steps
2
ROS 2 on Multiple Machines ROS2 Bag: Recording and playing ROS data ROS2: Next Steps
3
ROS 2 on Multiple Machines ROS2 Bag: Recording and playing ROS data ROS2: Next Steps
R UN ROS2 ON 2 MACHINES
4
ROS 2 on Multiple Machines ROS2 Bag: Recording and playing ROS data ROS2: Next Steps
U SE OF ROS DOMAIN ID
5
ROS 2 on Multiple Machines ROS2 Bag: Recording and playing ROS data ROS2: Next Steps
U SE OF ROS DOMAIN ID
6
ROS 2 on Multiple Machines ROS2 Bag: Recording and playing ROS data ROS2: Next Steps
U SE OF ROS DOMAIN ID
7
ROS 2 on Multiple Machines ROS2 Bag: Recording and playing ROS data ROS2: Next Steps
U SE OF ROS DOMAIN ID
You will not see any turtlesim related topics due to different ROS ID.
Now change the ROS DOMAIN ID=1 on the second terminal:
$ export ROS DOMAIN ID=1
$ ros2 topic list
8
ROS2 Bag: Recording and
playing ROS data
ROS 2 on Multiple Machines ROS2 Bag: Recording and playing ROS data ROS2: Next Steps
ROS2 Bag
This is a set of tools for recording from and playing
back ROS topics.
To record ros topics:
$ ros2 bag record
9
ROS 2 on Multiple Machines ROS2 Bag: Recording and playing ROS data ROS2: Next Steps
1. Start roscore.
2. Run the turtlebot simulator
$ ros2 run turtlsim turtlesim node
3. Run the keyboard teleoperation:
$ ros2 run turtlesim
turtle teleop key
11
ROS2: Next Steps
ROS 2 on Multiple Machines ROS2 Bag: Recording and playing ROS data ROS2: Next Steps
Future steps:
12
ROS 2 on Multiple Machines ROS2 Bag: Recording and playing ROS data ROS2: Next Steps
End of Lecture
haitham.elhussieny@ejust.edu.eg
13