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

Multi-Vehicle Simulation Error #11217

Closed
hxdnshx opened this issue Jan 15, 2019 · 3 comments
Closed

Multi-Vehicle Simulation Error #11217

hxdnshx opened this issue Jan 15, 2019 · 3 comments

Comments

@hxdnshx
Copy link

hxdnshx commented Jan 15, 2019

Describe the bug
I executed "roslaunch px4 multi_uav_mavros_sitl.launch", and got following error:

while processing /home/user/Firmware/launch/single_vehicle_spawn.launch:
Invalid tag: xacro
ROS path [0]=/opt/ros/kinetic/share/ros
ROS path [1]=/opt/ros/kinetic/share
ROS path [2]=/home/user/Firmware
ROS path [3]=/home/user/Firmware/Tools/sitl_gazebo
ROS path [4]=/home/user/Firmware
ROS path [5]=/home/user/Firmware/Tools/sitl_gazebo.

Arg xml is <arg default="$(find xacro)/xacro $(find px4)/Tools/sitl_gazebo/models/rotors_description/urdf/$(arg vehicle)_base.xacro rotors_description_dir:=$(find px4)/Tools/sitl_gazebo/models/rotors_description mavlink_udp_port:=$(arg mavlink_udp_port) --inorder" name="cmd"/>
The traceback for the exception was written to the log file

To Reproduce
Steps to reproduce the behavior:

  1. Luanch a px4 docker container

docker run -it --privileged -p 14562:14556/udp --name=mycontainer px4io/px4-dev-ros:lat
est bash

  1. Clone px4 firmware

git clone --recursive https://github.com/PX4/Firmware.git

  1. Build,Source and launch(From documention)

cd Firmware/
make posix_sitl_default
make posix_sitl_default sitl_gazebo
source Tools/setup_gazebo.bash $(pwd) $(pwd)/build/posix_sitl_default
export ROS_PACKAGE_PATH=$ROS_PACKAGE_PATH:$(pwd):$(pwd)/Tools/sitl_gazebo
roslaunch px4 multi_uav_mavros_sitl.launch

@lamping7
Copy link
Member

Whats the output of rospack find xacro in your container?

@hxdnshx
Copy link
Author

hxdnshx commented Jan 23, 2019

Thanks for your consideration. Everything works well after i installed package ros-kinetic-xacro.
So i created a pull-request to the project PX4/container.

@lamping7
Copy link
Member

Perfect. That was my guess.

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