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

Cannot load iris xacro in ros moveit #985

Closed
zubair123khan opened this issue Jul 14, 2018 · 19 comments
Closed

Cannot load iris xacro in ros moveit #985

zubair123khan opened this issue Jul 14, 2018 · 19 comments

Comments

@zubair123khan
Copy link

zubair123khan commented Jul 14, 2018

Description

I have recently installed ROS moveit and i was trying to test IRIS quad in moveit, although when i am trying to upload iris.xacro from my px4 firmware, it showing error that "Undefined substitution argument rotors_description_dir None" and it not able to recognnize rotors description package in px4 firmware.
can anyone tell me i am forgetting to do any workaround !

Thanks

Your environment

  • ROS Distro: [Kinetic]
  • OS Version: 16.04

Steps to reproduce

  1. clone the px4 firmware from https://github.com/PX4/Firmware
  2. launch rosmove it
  3. load iris.xacro from rotor description

Expected behaviour

i should see iris model loaded using .xacro

Actual behaviour

ERROR : cannot find package rotor description

Backtrace or Console output

when processing file: /home/zubair/Firmware/Tools/sitl_gazebo/models/rotors_description/urdf/iris_base.xacro
[rospack] Error: package 'sitl_gazebo' not found
[librospack]: error while executing command
xacro: Traditional processing is deprecated. Switch to --inorder processing!
To check for compatibility of your document, use option --check-order.
For more infos, see http://wiki.ros.org/xacro#Processing_Order
Undefined substitution argument rotors_description_dir None
when processing file: /home/zubair/Firmware/Tools/sitl_gazebo/models/rotors_description/urdf/iris.xacro

@rhaschke
Copy link
Contributor

You have several issues, all unreleated to MoveIt:

  1. package sitl_gazebo is missing
  2. You need to provide a command line argument rotors_description_dir when calling xacro.

I suggest to first figure out how to call xacro on the commandline.

@zubair123khan
Copy link
Author

zubair123khan commented Jul 15, 2018 via email

@rhaschke
Copy link
Contributor

I guess, when you are writing "load iris.xacro in ros moveit window", you actually mean to load this file in MoveIt's setup assistant, don't you?
If so, please try to get xacro running first on the command line like this:
xacro --inorder iris.xacro

The repository you mentioned, doesn't contain iris.xacro. Hence, I cannot reproduce your issue.

@zubair123khan
Copy link
Author

zubair123khan commented Jul 16, 2018 via email

@rhaschke
Copy link
Contributor

You should have mentioned that the repo uses submodules, which need to be cloned separately.
Looking into the urdf description, I find two substitution arguments:
$(arg visual_material) and $(arg rotors_description_dir). These need to be passed as cmdline arguments to xacro, e.g. like this:
xacro --inorder iris.xacro rotors_description_dir:=.. visual_material:=green

These arguments can also provided in MoveIt's setup assistant.

@zubair123khan
Copy link
Author

zubair123khan commented Jul 16, 2018 via email

@zubair123khan
Copy link
Author

zubair123khan commented Jul 16, 2018 via email

@zubair123khan
Copy link
Author

zubair123khan commented Jul 16, 2018 via email

@zubair123khan
Copy link
Author

zubair123khan commented Jul 16, 2018 via email

@zubair123khan
Copy link
Author

zubair123khan commented Jul 16, 2018 via email

@rhaschke
Copy link
Contributor

Works for me, both in cmdline and MSA. Do you use a non-default source branch or do you modified some files?

@zubair123khan
Copy link
Author

zubair123khan commented Jul 17, 2018 via email

@zubair123khan
Copy link
Author

zubair123khan commented Jul 17, 2018 via email

@rhaschke
Copy link
Contributor

rhaschke commented Jul 17, 2018

I provide exactly the options, I stated previously: rotors_description_dir:=.. visual_material:=green
screenshot_2018-07-17_12-20-29

To get rid of the remaining errors, you need to build your repo in a catkin workspace and source it.

@zubair123khan
Copy link
Author

zubair123khan commented Jul 17, 2018 via email

@zubair123khan
Copy link
Author

zubair123khan commented Jul 17, 2018 via email

@zubair123khan
Copy link
Author

zubair123khan commented Jul 17, 2018 via email

@zubair123khan
Copy link
Author

zubair123khan commented Jul 17, 2018 via email

@rhaschke
Copy link
Contributor

Again, the error is that your sitl_gazebo package wasn't yet build as a catkin package and announced to ROS. However, building your px4 package is completely out of the scope of MoveIt. Please refer to this packages's maintainers for more help. I will close this issue for now.

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

2 participants