Please enable JavaScript.
Coggle requires JavaScript to display documents.
ROS專業課程, Reference, Useful ROS Tool, Topic (Publisher / Subscriber),…
ROS專業課程
ROS 1 function
Topic, Service, Action, Parameter
• Node
• Topic (Publisher / Subscriber)
• Service (Server / Client)
• Action (Server / Client)
• Parameter Server
-
-
-
Useful ROS Tool
rostopic
用來監聽資料除錯用
視窗1
roscore
視窗2
rostopic pub -l /chatter std_msgs/String "data: 'test' "
(Latching mode)
rostopic pub -1 /chatter std_msgs/String "data: 'test' "
(Once mode)指令差別3秒後就收不到
rostopic pub -r 10 /chatter std_msgs/String "data: 'test' "
(Rate mode)每秒10次
-
rosbag
Record, Replay and Debug(紀錄回放除錯)
network之wireshark 等於 ROS之rosbag的關係
作用記錄問題,複製問題
指令說明
(Record all topic)
rosbag record --all
(Record /chatter)
rosbag record /chatter
(Show the info of bag file)
rosbag info rosbag_filename.bag
(Replay the bag file)
rosbag play rosbag_filename.bag
-
-
-
-
Action (Server / Client)
asynchronous
異步
bi-directional
雙向
used when it is difficult to use the service due to long response times after the request or when an intermediate feedback value is needed
請求後響應時間長,或需要中間反饋值,難以使用服務時使用
-
Navigation, grasping,motion execution
Parameter Server
-
Topic name, camera setting, calibration data, robot setup
全域變數
-
-
-
ROS installation
Necessary Package
Cyclone DDS, ROS bridge ...
sudo apt install ros-foxy-rmw-cyclonedds-cpp
Sudo apt install ros-foxy-ros1-bridge
The name of ROS packages
ros-<ros distro>-<packages name>
foxy rmw-cyclonedds-cpp
Installation Flow:
- Add apt key for ROS
- Install ROS
- Modify bashrc
- Install necessary packages
-
ROS verification
ROS 1 verification
Termain 1: roscore
Termain 2: rosrun turtlesim turtlesim_node
Termain 3: rosrun turtlesim turtle_teleop_key
Hint:
Ctrl+Shift+T for new terminal tab
Ctrl+Alt+T for new terminal window
Note: You need to press arrow keys in terminal 3.
-
-
-
-
-
-
-
-
-