| 查看: 483 | 回复: 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. |
» 猜你喜欢
参与限项
已经有5人回复
推荐一本书
已经有7人回复
有没有人能给点建议
已经有5人回复
假如你的研究生提出不合理要求
已经有12人回复
全日制(定向)博士
已经有5人回复
萌生出自己或许不适合搞科研的想法,现在跑or等等看?
已经有4人回复
Materials Today Chemistry审稿周期
已经有4人回复
对氯苯硼酸纯化
已经有3人回复
所感
已经有4人回复
要不要辞职读博?
已经有7人回复












回复此楼