- ROS2 foxy is installed
- You have twist_mux and xterm packages installed [don't worry if you don't you can do this by following next steps]
- clone the repo and follow steps below
- Get the code from github repo for dynabot
git clone https://github.com/robofoundry/twist_mux_example
- while in root workspace folder run the following command to execute shell script that will get code from all external github repos installed in workspace and run rosdep to install any depedencies that are missing [on both host and robot computer]
rosdep install --from-path src --ignore-src -y
- while in root workspace folder run the following commands to build and launch the nodes
colcon build
source install/setup.bash
ros2 launch twist_mux_test twist_mux_test.launch.py
'''
ros2 topic pub -r 1 /joy_cmd_vel geometry_msgs/msg/Twist '{linear: {x: 2.0, y: 0.0, z: 0.0}, angular: {x: 0.0, y: 0.0, z: 1.8}}'
'''