| 查看: 499 | 回复: 0 | |||
[交流]
ROS基本node,massage
|
|
基本概念: Nodes: A node is an executable that uses ROS to communicate with other nodes. Messages: ROS data type used when subscribing or publishing to a topic. Topics: Nodes can publish messages to a topic as well as subscribe to a topic to receive messages. Master: Name service for ROS (i.e. helps nodes find each other) rosout: ROS equivalent of stdout/stderr roscore: Master + rosout + parameter server (parameter server will be introduced later) Client Libraries ROS client libraries allow nodes written in different programming languages to communicate: rospy = python client library roscpp = c++ client library $ roscore 如果权限不够 $ sudo chown -R <your_username> ~/.ros 开一个新的终端 $ rosnode list 再开一个 $ rosrun [package_name] [node_name] $ rosrun turtlesim turtlesim_node $ rosnode 改node名字 $ rosrun turtlesim turtlesim_node __name:=my_turtle 可以ping一下 $ rosnode ping my_turtle roscore = ros+core : master (provides name service for ROS) + rosout (stdout/stderr) + parameter server (parameter server will be introduced later) rosnode = ros+node : ROS tool to get information about a node. rosrun = ros+run : runs a node from a given package. |
» 猜你喜欢
322求调剂
已经有12人回复
电子信息270求调剂
已经有16人回复
272分材料子求调剂
已经有50人回复
295分求调剂
已经有13人回复
339求调剂
已经有9人回复
一志愿哈工大 085600 277 12材科基求调剂
已经有28人回复
调剂求收留
已经有28人回复
290调剂生物0860
已经有26人回复
2本,初试303,0860求调剂
已经有7人回复
材料工程281还有调剂机会吗
已经有28人回复













回复此楼