Skip to content
This repository has been archived by the owner on Mar 17, 2021. It is now read-only.

Update multi-vehicle-simulation.md #821

Closed
wants to merge 1 commit into from
Closed

Update multi-vehicle-simulation.md #821

wants to merge 1 commit into from

Conversation

tensarflow
Copy link

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.

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.
Copy link
Collaborator

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 :-)

@hamishwillee
Copy link
Collaborator

Thanks @tensarflow . I've asked Anthony to comment on this as he as worked on the area extensively.

@lamping7
Copy link
Member

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.

@hamishwillee
Copy link
Collaborator

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.

@tensarflow
Copy link
Author

I think that solves the problem. Thank you very much @lamping7 !!

@tensarflow
Copy link
Author

tensarflow commented Jun 28, 2019

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 SDF files of different vehicles but in order to use them you need to change in launch/mavros_posix_sitl.launch line 14 and specify whatever vehicle you want to use. I can't see any documentation where that is mentioned.
I mean it may seem obvious but for a starter that can cost hours to find out (like it was in my case :D)

@lamping7
Copy link
Member

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.

@tensarflow
Copy link
Author

Okay I see..

@lamping7
Copy link
Member

lamping7 commented Jul 9, 2019

Close in favor of #825 @hamishwillee?

@hamishwillee
Copy link
Collaborator

Yes :-). Thanks @lamping7 - an @tensarflow see #825

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

Successfully merging this pull request may close these issues.

3 participants