forked from Riley-Tuckett/SRT-ROS
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathROS2Cmds.txt
More file actions
70 lines (41 loc) · 2.16 KB
/
ROS2Cmds.txt
File metadata and controls
70 lines (41 loc) · 2.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
------------------------------------------------------------------------------------------------------------------
ROS2 Commands
------------------------------------------------------------------------------------------------------------------
- Author: Disha Anchan
- Last Updated: 21/03/2026
- Description: This contains a list of ROS2 Commands used for the 2026 ARch Competition
to make everyone's lives easier ( Skill issue for not remembering Commands :P )
------------------------------------------------------------------------------------------------------------------
--------------------------------------------------
Rover Specific ROS2 Commands
--------------------------------------------------
[To kill the entire Rover System]
ros2 topic pub -t 1 /KillSwitch std_msgs/msg/Bool "{data: true}"
--------------------------------------------------
Rover Pivot Specific Commands
--------------------------------------------------
[To stop Pivot Movement]
ros2 topic pub -t 1 /Pivot_Stop std_msgs/msg/Bool "{data: true}"
[To Restart the Pivot ESP32]
ros2 topic pub -t 1 /Pivot_Restart std_msgs/msg/Bool "{data: true}"
--------------------------------------------------
Rover Arm Specific Commands
--------------------------------------------------
[To Stop Rover Arm Movement]
ros2 topic pub -t 1 /Arm_Stop std_msgs/msg/Bool "{data: true}"
[To Restart the Arm ESP32]
ros2 topic pub -t 1 /Arm_Restart std_msgs/msg/Bool "{data: true}"
--------------------------------------------------
Basic ROS2 commands
--------------------------------------------------
[To check all available nodes in the ROS2 network]
ros2 node list
[To check all available topics in the ROS2 network]
ros2 topic list
[To check the details of a ROS2 topic]
ros2 topic info /<topic_name>
[To check the values being published under a topic]
ros2 topic echo /<topic_name>
[To publish values under a topic]
ros2 topic pub /<topic_name> <topic_type> "<arg>"
Note: You need to understand the message structure of the topic type.