name 'xacro' is not defined
Hi,
when I'm trying to launch my simulation I get an error and when I execute the command in the error message I get the following output:
name 'xacro' is not defined
when evaluating expression 'xacro.load_yaml(visual_parameters_file)'
when evaluating expression 'config_visual_parameters['mesh_files']'
when instantiating macro: read_model_data
(/root/ur_driver/install/ur_description/share/ur_description/urdf/inc/ur_common.xacro)
instantiated from: ur_robot (/root/ur_driver/install/ur_description/share/ur_description/urdf/ur_macro.xacro)
in file: /root/ur_driver/install/ur_description/share/ur_description/urdf/ur.urdf.xacro
Yesterday it worked fine. I tried to rebuild the docker container and tried to reinstall xacro with
apt-get remove ros-foxy-xacro
apt-get install ros-foxy-xacro
I'm currently developing in a docker container with ubuntu 20.04 and ROS foxy. I'm working with the UR ROS2 Driver foxy branch and try to launch with the following command:
ros2 launch ur_bringup ur_control.launch.py ur_type:=ur5e robot_ip:=yyy.yyy.yyy.yyy use_fake_hardware:=true launch_rviz:=false