uuvsimulator / eca_a9

Vehicle model description and configuration files for the ECA A9 AUV.

Home Page:https://uuvsimulator.github.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

namespace error

gnaneshwarbandari opened this issue · comments

Got an error when running the below command. @musamarcusso

roslaunch eca_a9_gazebo start_demo_teleop.launch joy_id:=0


... logging to /home/ubuntu/.ros/log/27f5cb12-a5c1-11ec-bb15-2cf05d113d72/roslaunch-ubuntu-ThinkStation-P330-11008.log
Checking log directory for disk usage. This may take a while.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.

xacro: in-order processing became default in ROS Melodic. You can drop the option.
**name 'namespace' is not defined 
when evaluating expression 'namespace'**
when processing file: /home/ubuntu/catkin_ws/src/eca_a9/eca_a9_description/urdf/eca_a9_snippets.xacro
included from: /home/ubuntu/catkin_ws/src/eca_a9/eca_a9_description/urdf/eca_a9_base.xacro
included from: /home/ubuntu/catkin_ws/src/eca_a9/eca_a9_description/robots/eca_a9_default.urdf.xacro
RLException: while processing /home/ubuntu/catkin_ws/src/eca_a9/eca_a9_description/launch/upload_eca_a9.launch:
Invalid <param> tag: Cannot load command parameter [robot_description]: command [['/opt/ros/melodic/lib/xacro/xacro', '/home/ubuntu/catkin_ws/src/eca_a9/eca_a9_description/robots/eca_a9_default.urdf.xacro', '--inorder', 'debug:=0', 'namespace:=eca_a9', 'inertial_reference_frame:=world_ned']] returned with code [2]. 

Param xml is <param command="$(find xacro)/xacro '$(find eca_a9_description)/robots/eca_a9_$(arg mode).urdf.xacro' --inorder                       debug:=$(arg debug)                       namespace:=$(arg namespace)                       inertial_reference_frame:=world_ned" name="robot_description"/>
The traceback for the exception was written to the log file

Hi, I came across the same problem earlier today. After a bunch of debugging, I solved the problem by deleting the commented out XML at the bottom of

/home/ubuntu/catkin_ws/src/eca_a9/eca_a9_description/urdf/eca_a9_snippets.xacro
it doesnt make sense, but i hope this helps!

Thanks a lot @royneal it worked out.