This is the repo for RnD ROS2 Humble and Testing for McGill Robotics
- List all nodes:
ros2 node list
- Get information about a node:
ros2 node info <node_name>
- Run a node from a package:
ros2 run <package_name> <executable_name>
- View the ROS graph:
rqt_graph
- Echo messages from a topic:
ros2 topic echo <topic_name>
- Show interface of a message type:
ros2 interface show <msg_type>
- Publish a message to a topic:
ros2 topic pub <topic_name> <msg_type> '<arguments>'
- Check the publishing rate of a topic:
ros2 topic hz <topic_name>
- Get the type of a service:
ros2 service type <service_name>
- List all parameters:
ros2 param list
- Set a parameter for a node:
ros2 param set <node_name> <param_name> <value>
- List all actions:
ros2 action list
- Run the ROS console:
ros2 run rqt_console rqt_console
- Publish a Twist message to control a turtle:
ros2 topic pub -r 1 /turtle1/cmd_vel geometry_msgs/msg/Twist "{linear: {x: 2.0, y: 0.0, z: 0.0}, angular: {x: 0.0, y: 0.0, z: 0.0}}"
- Launch a ROS launch file (supports Python launch scripts):
ros2 launch <launch_file>
- Record data to a bag file:
ros2 bag record <topics>
- Run the rosbridge websocket server:
ros2 run rosbridge_server rosbridge_websocket
- Launch the rosbridge websocket server:
ros2 launch rosbridge_server rosbridge_websocket.launch
- Build packages with colcon:
colcon build --symlink-install
- Create a new ROS package:
ros2 pkg create <package_name>
- (Add relevant Docker commands for Unity here)