在Ubuntu 18.04 LTS入门ROS Melodic版机器人操作系统
在ROS Melodic中推荐使用catkin_tool: $ sudo apt-get install python-catkin-tools 使用catkin build编译ros_tutorials,简洁方便: 这是ROS最基础最核心的教程。ros_tutorials主要有roscpp,rospy和turtlesim三个部分。 围绕主题(topic)和服务(service)等展开,其中rospy源码有序号,推荐先对应学习python版本,然后依据序号顺序学习C++版本: 以advanced_publish.py为例: ## talker demo that published std_msgs/ColorRGBA messages ## to the 'color' topic. To see these messages, type: ## rostopic echo color ## this demo shows some of the more advanced APIs in rospy. import rospy from std_msgs.msg import ColorRGBA def talker(): topic = 'color' pub = rospy.Publisher(topic, ColorRGBA, queue_size=10) rospy