笔记关键词检索?

在所有笔记中搜索你感兴趣的关键词!

《ROS机器人开发实践》

作者:胡春旭 著


launch文件语法


<launch>
<node pkg="turtlesim" type="turtlesim_node" name="sim"/>
<node pkg="turtlesim" type="turtle_teleop_key" name="teleop" output="screen"/>
<node name="turtle1_tf_broadcaster" pkg="learning_tf" type="turtle_tf_broadcaster.py">
<param name="turtle" type="string" value="turtle1" />
</node>
<node name="turtle2_tf_broadcaster" pkg="learning_tf" type="turtle_tf_broadcaster.py">
<param name="turtle" type="string" value="turtle2" />
</node>
<node pkg="learning_tf" type="turtle_tf_listener.py" name="listener" />
</launch>



<launch>
launch文件中的根元素采用<launch>标签定义


<node>


启动节点    <node pkg="package-name" type="executable-name" name="node-name">
pkg:节点所在的功能包名称
type:节点的可执行文件名称
name:节点运行时的名称
output、respawn、required、ns、args





 
 

............

线速度

............

rosrun tf view_frames 运行失败

............

与Python兼容问题(No module catkin_dkg.package)

错误信息如下: 

-- Using Python nosetests: /usr/bin/nosetests-2.7
ImportError: "from catkin_pkg.package import parse_package" failed: No module named catkin_pkg.package
Make sure that you have installed "catkin_pkg", it is up to date and on the PYTHONPATH.
CMake Error at /opt/ros/kinetic/share/catkin/cmake/safe_execute_process.cmake:11 (message):
execute_process(/home/wgb/anaconda2/bin/python
"/opt/ros/kinetic/share/catkin/cmake/parse_package_xml.py"
"/opt/ros/kinetic/share/catkin/cmake/../package.xml"
"/home/wgb/catkin_ws/build/catkin/catkin_generated/version/package.cmake")
returned error code 1
Call Stack (most recent call first):
/opt/ros/kinetic/share/catkin/cmake/catkin_package_xml.cmake:63 (safe_execute_process)
/opt/ros/kinetic/share/catkin/cmake/all.cmake:151 (_catkin_package_xml)
/opt/ros/kinetic/share/catkin/cmake/catkinConfig.cmake:20 (include)
CMakeLists.txt:52 (find_package)


-- Configuring incomplete, errors occurred!
See also "/home/wgb/catkin_ws/build/CMakeFiles/CMakeOutput.log".
See also "/home/wgb/catkin_ws/build/CMakeFiles/CMakeError.log".

解决办法
检查一下Python的版本: wgb@wgb:~$ python -V
检查一下catkin依赖的Python版本: wgb@wgb:~$ dpkg -L python-catkin-pkg
如果Python的版本和catkin依赖的版本不一样,说明Python依赖包有问题,解决办法:

conda install setuptools

pip install -U rosdep rosinstall_generator wstool rosinstall six vcstools
 

............

rosbag

............

rostopic

............