Slide 13
Slide 13 text
D-Robotics 2024 - Confidential Information Under NDA
原理分析
Query the nodes and topics on RDK X3 board using
ROS2 command-line tool:
root@ubuntu:~# source /opt/tros/setup.bash
root@ubuntu:~# ros2 node list
/gesture_control
/gesture_control_parameter_node
/hand_gesture_det
/hand_lmk_det
/hobot_codec1656779158649265431
/mipi_cam
/mono2d_body_det
/ros_bridge_example
/transform_listener_impl_558896ba50
/websocket
root@ubuntu:~# ros2 topic list
/cmd_vel
/hbmem_img080a1309022201080401012021072312
/hobot_hand_gesture_detection
/hobot_hand_lmk_detection
/hobot_mono2d_body_detection
/image_jpeg
/image_raw
/imu/data_raw
/odom
/parameter_events
/quat_odom
/raw_odom
/rosout
/tf
/tf_static
ROS2 Node Communication: Publisher-Subscriber Mechanism and
Visualization with rqt
nodes don't communicate directly with each other; instead, they publish and
subscribe to topics. This mechanism allows for loose coupling between nodes, where
a publisher can send data without needing to know who the subscriber is, and vice
versa
Node Graph Visualization in rqt (ROS Tool)
Key Features of Node Graph in rqt:
Nodes: The graphical representation of all active nodes on the system, shown as
individual entities.
Topics: Each node can publish and subscribe to one or more topics, which are
depicted as connections between the nodes.
Connections: Arrows or lines show the publisher-subscriber relationships between
nodes and their associated topics.