Gazebo not working with ROSS because of lxml

Questions about our ROS (Robot Operating System) API

Moderator: arrallan

Post Reply
tkschuler
Posts: 4
Joined: Tue Feb 02, 2021 2:07 pm

Gazebo not working with ROSS because of lxml

Post by tkschuler » Tue Feb 02, 2021 2:35 pm

I am having trouble getting the hebi gazebo tutorial running with ROS. I have followed the tutorial on [github][https://github.com/HebiRobotics/hebi_gazebo] and also installed hebi_description and hebi_cpp_api_ros_examples in my workspace but get the following error when I try running :

Code: Select all

roslaunch hebi_gazebo arm_simulation.launch arm_type:=A-2085-06
And the error...

Code: Select all

Traceback (most recent call last):
  File "/home/schuler/catkin_ws/src/hebi_description/scripts/urdf_generator.py", line 10, in <module>
    from lxml import etree as ET
ModuleNotFoundError: No module named 'lxml'
RLException: Invalid <param> tag: Cannot load command parameter [robot_description]: command [['/home/schuler/catkin_ws/src/hebi_description/scripts/hrdf_convert', '/home/schuler/catkin_ws/src/hebi_cpp_api_examples/config/A-2085-06_params.yaml']] returned with code [255]. 

Param xml is <param command="$(find hebi_description)/scripts/hrdf_convert $(arg config_file)" name="robot_description"/>
The traceback for the exception was written to the log file
I tried installing lxml manually and that didn't fix the issue.
tkschuler
Posts: 4
Joined: Tue Feb 02, 2021 2:07 pm

Re: Gazebo not working with ROSS because of lxml

Post by tkschuler » Tue Feb 02, 2021 5:07 pm

I needed to do pip3 install lxml instead of pip install lxml and now it is working.
Post Reply