-
Notifications
You must be signed in to change notification settings - Fork 480
Gazebo ROS interface documentation error #66
Comments
@eric1221bday Thanks for the elaborate feedback. This is appreciated. @vilhjalmur89 you also ran into this issue with the redundant gazebo copies. Can you comment? @eric1221bday it would be great if you can file a pull request for the things which are obviously wrong and we should try to fix the confusion about the build of sitl_gazebo. |
@julianoes so just as a warning large parts of that page is basically invalid, the "what's happening behind the scenes" section is pretty much completely obsolete. I guess what I'm trying to say that the page would probably need an overhaul, the only section that as it stand works is probably just the top section, launch mavros to interface with no gazebo plugins this first pull request would probably just be focussed on correcting the versioning on installing gazebo, I'll leave modifying the launch procedure for gazebo wrappers up for further discussion |
@julianoes pull request created |
@eric1221bday Thanks for the feedback. You are right about having to run The sitl_gazebo issue is because of the line |
@vilhjalmur89 can you please review the PR, thanks. |
@vilhjalmur89 you are correct, I am able to run SITL now using the corrected version of the instructions, however I would also advise removing
since having a catkin workspace is unnecessary to running this SITL, only if the user has some external packages he or she needs to run, that would be up to them, this line just causes confusion. |
@eric1221bday You might need that line for the Mavros example, but it wouldn't hurt to make it explicit |
@vilhjalmur89 actually since there are debian packages of mavros, if you didn't build mavros from source you actually wouldn't need that line at all |
@eric1221bday Yes, but in the guide it is recommended to build it from source. But you're right, it is unnecessarily confusing |
@vilhjalmur89 alright then on second pass I'll leave it in but leave a note on the fact that it's optional |
@vilhjalmur89 Can you review and close or fix? Thanks! |
@rahulkalliadan this is an older issues, please create a new issue for your problem and copy&paste the error message instead of a screenshot. |
As it currently stands the documentation on interface to ROS with gazebo is not quite correct.
First, the second instruction on launching gazebo with ROS wrappers
would not compile the sitl_gazebo submodule. If the user has not previously built the sitl_gazebo package, the instruction should be
which would force the makefile to build the sitl_gazebo package alongside
Second, even if the above correction is applied, the simulation still would not run properly if the
file is run, specifically mavros would be unable to connect to the simulated drone in gazebo.
I've personally found a workaround to this problem and is currently able to run mavros and gazebo in both Ubuntu 14.04 and 16.04 using Gazebo 6 and 7. It is as follows
I realize that the sitl_gazebo package is contained within the Firmware folder as a submodule, and thus this methods is quite inefficient in terms of space usage, however this remains the only method I know of that could run mavros with gazebo, and as such I would like the ask the devs if this can be the recommended method on the devguide.
If so, I would happily submit a pull request to update the devguide, if not, then this can be a reference to others as a workaround for the current system
The text was updated successfully, but these errors were encountered: