| 查看: 495 | 回复: 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. |
» 猜你喜欢
311求调剂
已经有6人回复
高分子化学与物理调剂
已经有4人回复
化工专硕348,一志愿985求调剂
已经有5人回复
博士自荐
已经有3人回复
求环氧树脂研发1名
已经有11人回复
博士推荐
已经有5人回复
0856材料求调剂
已经有9人回复
285求调剂
已经有3人回复
265分求调剂不调专业和学校有行学上就
已经有6人回复
312求调剂
已经有5人回复













回复此楼