uuvsimulator / eca_a9

Vehicle model description and configuration files for the ECA A9 AUV.
https://uuvsimulator.github.io/
Apache License 2.0
13 stars 21 forks source link

namespace error #33

Closed gnaneshwarbandari closed 2 years ago

gnaneshwarbandari commented 2 years ago

Got an error when running the below command. @musamarcusso

_roslaunch eca_a9_gazebo start_demo_teleop.launch joyid:=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
royneal commented 2 years ago

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!

gnaneshwarbandari commented 2 years ago

Thanks a lot @royneal it worked out.