ROS(010: Examining the Simple Publisher and Subscriber)

$ roscore

$ cd ~/catkin_ws

$ source ./devel/setup.bash

for python:

$ rosrun beginner_tutorials talker.py

$ rosrun beginner_tutorials listener.py


for C++:

$ rosrun beginner_tutorials talker

$ rosrun beginner_tutorials listener

 

 

 

打赏