frankaemika / franka_ros

ROS integration for Franka research robots
https://frankaemika.github.io
Apache License 2.0
364 stars 312 forks source link

Unknown substitution command [arm_id] When using franka_visualization.launch #331

Closed cemoke closed 1 year ago

cemoke commented 1 year ago

I am using the franka_description package from the develop branch without any modifications to display the robot in RViz without actually connecting to the robot. I have only franka_description package from franka_ros repo and not building any other packages in the catkin_ws. Accordingly, I modified the launch file from the franka_visualization package as follows:

` <?xml version='1.0' encoding='utf-8'?>

` However, when I run the launch file I get the following error

` Unknown substitution command [arm_id]. Valid commands are ['find', 'env', 'optenv', 'dirname', 'anon', 'arg'] when instantiating macro: franka_robot (/Users/cembilaloglu/catkin_ws/src/franka_description/robots/common/franka_robot.xacro) in file: /Users/cembilaloglu/catkin_ws/src/franka_description/robots/panda/panda.urdf.xacro RLException: Invalid tag: Cannot load command parameter [robot_description]: command [['/Users/cembilaloglu/miniforge3/envs/robostackenv/lib/xacro/xacro', '/Users/cembilaloglu/catkin_ws/src/franka_description/robots/panda/panda.urdf.xacro', 'hand:=true']] returned with code [2].

Param xml is The traceback for the exception was written to the log file ` I would be glad if you can help me to resolve the issue as the log file also does not point to the line that generates the error.

Thanks in advance!

cemoke commented 1 year ago

I found out that the issue is related to robostack conda environment that I am using (link here) and not associated with franka_ros