-
Notifications
You must be signed in to change notification settings - Fork 480
Conversation
The mult-UAV simulation with Gazebo needed a little more description. xacro was covered pretty good, where using sdf files where not documented at all.
@@ -120,6 +120,8 @@ To add a third iris to this simulation there are two main components to consider | |||
> **Note** Be aware of which port is `src` and `dst` for the different endpoints. | |||
|
|||
|
|||
If you like to use the `SDF` models in the repository, you need to specify the UDP and TCP communication ports manually for each `SDF` file. So if you want to add multiple UAV's of the same model, you need to create a seperate `SDF` file for every UAV with its custom UDP and TCP ports. To add the TCP port in the `SDF` file, add `<mavlink_tcp_port>4560</mavlink_tcp_port>` under `<mavlink_udp_port>14561</mavlink_udp_port>`. The [mavros_posix_sitl.launch](https://github.com/PX4/Firmware/blob/master/launch/mavros_posix_sitl.launch) is a good starting point to use `SDF` files in the launch. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@lamping7 Can you please confirm that this is correct? It sounds like what is implied by the rest of the doc, so my first thought was that it probably is :-)
Thanks @tensarflow . I've asked Anthony to comment on this as he as worked on the area extensively. |
I'll take a look soon at the details. I just want to quickly point out PX4/PX4-Autopilot#12306 which removed the need to create copies of the same model. |
Thanks very much @lamping7 . Are you OK to look at fixes related to PX4/PX4-Autopilot#12306 after reviewing this PR? I can follow this up, but it probably makes more sense for you to do so. |
I think that solves the problem. Thank you very much @lamping7 !! |
Also I'd like to point out that I can't actually find any documentation about how to customize these roslaunch files. For example there are various |
You need to Google roslaunch. That's ROS basics. You don't modify the file to change the vehicle. You specify it as an argument when you run the roslaunch command. |
Okay I see.. |
Close in favor of #825 @hamishwillee? |
Yes :-). Thanks @lamping7 - an @tensarflow see #825 |
The mult-UAV simulation with Gazebo needed a little more description. xacro was covered pretty good, where using sdf files where not documented at all.