Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

name 'namespace' is not defined #316

Closed
johnwaneboy opened this issue Mar 1, 2022 · 3 comments
Closed

name 'namespace' is not defined #316

johnwaneboy opened this issue Mar 1, 2022 · 3 comments

Comments

@johnwaneboy
Copy link

There is a strange issue. I have install and run a program successfully, and no adjustments were made. When I ran another program, but there is no changes in the first program, the following problems occurred.

name 'namespace' is not defined
when evaluating expression 'namespace'
when processing file: /home/wane/catkin_ws/src/rotors_simulator/rotors_description/urdf/component_snippets.xacro
included from: /home/wane/catkin_ws/src/rotors_simulator/rotors_description/urdf/hummingbird_base.xacro
included from: /home/wane/catkin_ws/src/rotors_simulator/rotors_description/urdf/mav_generic_odometry_sensor.gazebo
RLException: while processing /home/wane/catkin_ws/src/rpg_quadrotor_control/simulation/rpg_rotors_interface/launch/basics/base_quad_simulation.launch:
while processing /home/wane/catkin_ws/src/rotors_simulator/rotors_gazebo/launch/spawn_mav.launch:
Invalid tag: Cannot load command parameter [robot_description]: command [['/opt/ros/melodic/lib/xacro/xacro', '/home/wane/catkin_ws/src/rotors_simulator/rotors_description/urdf/mav_generic_odometry_sensor.gazebo', 'enable_logging:=false', 'enable_ground_truth:=true', 'enable_mavlink_interface:=false', 'log_file:=hummingbird', 'wait_to_record_bag:=false', 'mav_name:=hummingbird', 'namespace:=hummingbird']] returned with code [2].

Param xml is
The traceback for the exception was written to the log file

@rhaschke
Copy link
Contributor

rhaschke commented Mar 1, 2022

The error message states that your are accessing the xacro property ${namespace}, which isn't defined in component_snippets.xacro. I see that you pass a namespace argument via cmdline, but this needs to be referenced via $(arg namespace). For further debugging, you should provide a minimal code example exhibiting the issue.

@danielvennestrom
Copy link

I am running into a similar problem. On the rotors_simulator repo there is an issue that suggest using older xacro version and rebuild the package.

@rhaschke
Copy link
Contributor

rhaschke commented Mar 1, 2022

Thanks for referencing the rotors_simulator repo (even better would have been referencing the issue: ethz-asl/rotors_simulator#695). The problem is resolved in xacro 1.14.13. Please simply update.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants