Closed giorgiapazzi closed 9 months ago
This works for me as expected. Which version of xacro do you use? Maybe you actually use an old version?
I'm using the version 1.14.6 for xacro
I have installed libfranka using the command sudo apt install libfranka. Instead, for the franka_ros package, I have installed it from the source code cloning the git repository branch noetic-devel.
What's the result of which xacro
?
which xacro command returns:
/opt/ros/noetic/bin/xacro
I have tried also rospack find xacro and the result is:
/opt/ros/noetic/share/xacro
This is weird. Could you try reinstalling xacro? What happens if you use xacro from source as well? Do you use a virtual or conda environment?
I solved the problem by cloning the xacro repository directly into my workspace and remake.
If that works, your installation of xacro is somehow screwed. Can we close this issue?
Yes we can close it
I'm running the example reported in franka_ros documentation . When I try to run:
roslaunch franka_gazebo panda.launch x:=-0.5 \ world:=$(rospack find franka_gazebo)/world/stone.sdf \ controller:=cartesian_impedance_example_controller \ rviz:=true
I get the following error:
name 'xacro' is not defined when evaluating expression 'xacro.load_yaml('$(find franka_description)/robots/panda/joint_limits.yaml')'
I get the same error launching:xacro $(rospack find franka_description)/robots/panda/panda.urdf.xacro gazebo:=true
I'm using franka_ros for Ros Noetic.