Difference between revisions of "ROS 2 Suite node sample"
From ESS-WIKI
(udate) |
(update) |
||
| Line 1: | Line 1: | ||
== Introduction == | == Introduction == | ||
| − | + | === c++ sample === | |
| + | |||
| + | Run example for subscribe, you can open a terminal to executing command: | ||
| + | |||
| + | <pre> | ||
| + | ros2 run demo_nodes_cpp listener | ||
| + | </pre> | ||
| + | |||
| + | Open a new terminal to executing command to publish: | ||
| + | |||
| + | <pre> | ||
| + | ros2 run demo_nodes_cpp talker | ||
| + | </pre> | ||
| + | |||
| + | |||
=== rclnodejs sample === | === rclnodejs sample === | ||
Revision as of 09:02, 16 December 2022
Introduction
c++ sample
Run example for subscribe, you can open a terminal to executing command:
ros2 run demo_nodes_cpp listener
Open a new terminal to executing command to publish:
ros2 run demo_nodes_cpp talker
rclnodejs sample
ttt
rclpy sample
ttt