roslaunch turtlebot_gazebo turtlebot_world.launch
但我得到以下错误
Traceback (most recent call last): file "/opt/ros/kinetic/share/xacro/xacro.py",line 55,in <module> import xacro file "/opt/ros/kinetic/lib/python2.7/dist-packages/xacro/__init__.py",line 42,in <module> from roslaunch import substitution_args file "/opt/ros/kinetic/lib/python2.7/dist-packages/roslaunch/__init__.py",line 56,in <module> from .launch import ROSLaunchRunner file "/opt/ros/kinetic/lib/python2.7/dist-packages/roslaunch/launch.py",in <module> from roslaunch.nodeprocess import create_master_process,create_node_process file "/opt/ros/kinetic/lib/python2.7/dist-packages/roslaunch/nodeprocess.py",line 49,in <module> from roslaunch.node_args import create_local_process_args file "/opt/ros/kinetic/lib/python2.7/dist-packages/roslaunch/node_args.py",line 53,in <module> import roslib.packages file "/opt/ros/kinetic/lib/python2.7/dist-packages/roslib/__init__.py",line 54,in <module> import roslib.stacks file "/opt/ros/kinetic/lib/python2.7/dist-packages/roslib/stacks.py",line 46,in <module> import roslib.packages file "/opt/ros/kinetic/lib/python2.7/dist-packages/roslib/packages.py",in <module> from catkin.find_in_workspaces import find_in_workspaces as catkin_find file "/opt/ros/kinetic/lib/python2.7/dist-packages/catkin/find_in_workspaces.py",line 36,in <module>from catkin_pkg.packages import find_packagesimportError: No module named catkin_pkg.packageswhile processing /opt/ros/kinetic/share/turtlebot_gazebo/launch/includes/kobuki.launch.xml:InvalID <param> tag: Cannot load command parameter [robot_description]: command [/opt/ros/kinetic/share/xacro/xacro.py '/opt/ros/kinetic/share/turtlebot_description/robots/kobuki_hexagons_asus_xtion_pro.urdf.xacro'] returned with code [1].解决方法 这对我有用
pip install catkin_pkg总结
以上是内存溢出为你收集整理的python – ImportError:没有名为catkin_pkg.packages的模块全部内容,希望文章能够帮你解决python – ImportError:没有名为catkin_pkg.packages的模块所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)