-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnotes.txt
77 lines (44 loc) · 1.05 KB
/
notes.txt
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
70
71
72
73
74
75
76
Create catkin_ws:
mkdir catkin_ws
cd catkin_ws
mkdir src
catkin_make #inside catkin_ws
add source file to .bashrc:
source ~/catkin_ws/devel/setup.bash
Create a ROS Package:
catkin_create_pkg my_robot_conroller rospy turtlesim
~/catkin_ws$ catkin_make
Run listener and talker:
rosrun rospy_tutorials talker
rosrun rospy_tutorials listener
List current nodes:
rosnode list
List current topics:
rostopic list
Get topic info:
$ rostopic info /chatter
Type: std_msgs/String
Publishers:
* /talker_18118_1694715948305 (http://erhan-Acer:33685/)
Subscribers:
* /listener_18324_1694715984258 (http://erhan-Acer:45589/)
Get msg content
$ rosmsg show std_msgs/String
string data
Get topic content
rostopic echo /chatter
Rosservices:
rosservice list
$ rosservice info /turtle1/set_pen
Node: /turtlesim
URI: rosrpc://erhan-Acer:57297
Type: turtlesim/SetPen
Args: r g b width off
$ rossrv show turtlesim/SetPen
uint8 r
uint8 g
uint8 b
uint8 width
uint8 off
---
rosservice call /.....