error when including husky_gazebo in another launch file

asked 2020-05-10 05:40:35 -0500

Zohreh gravatar image

hello everyone

I use ubuntu 16.04 and Ros Kinetic and I want to use husky robot in my gazebo simulation. I downloaded the husky packages and when I runroslaunch husky_gazebo husky_empty_world.launch after source /opt/ros/kinetic/setup.bash everything is ok and I can see the husky in Gazebo. Then I included husky_gazebo package in my launch file (launch file in another package) adding the line <include file="$(find husky_gazebo)/launch/husky_empty_world.launch"/> I executed roslaunch with my new launch file but I faced the below error:

Traceback (most recent call last):
  File "/opt/ros/kinetic/lib/xacro/xacro", line 41, in <module>
    xacro.main()
AttributeError: 'module' object has no attribute 'main'
while processing /opt/ros/kinetic/share/husky_gazebo/launch/husky_empty_world.launch:
while processing /opt/ros/kinetic/share/husky_gazebo/launch/spawn_husky.launch:
while processing /opt/ros/kinetic/share/husky_control/launch/control.launch:
while processing /opt/ros/kinetic/share/husky_description/launch/description.launch:
Invalid <param> tag: Cannot load command parameter [robot_description]: command [/opt/ros/kinetic/lib/xacro/xacro '/opt/ros/kinetic/share/husky_description/urdf/husky.urdf.xacro'     --inorder     robot_namespace:=/     laser_enabled:=true     kinect_enabled:=false     urdf_extras:=     ] returned with code [1]. 

Param xml is <param command="$(find xacro)/xacro '$(find husky_description)/urdf/husky.urdf.xacro'     --inorder     robot_namespace:=$(arg robot_namespace)     laser_enabled:=$(arg laser_enabled)     kinect_enabled:=$(arg kinect_enabled)     urdf_extras:=$(arg urdf_extras)     " name="robot_description"/>
The traceback for the exception was written to the log file

can anyone help me to fix this problem?

Thanks.

edit retag flag offensive close merge delete