-
Notifications
You must be signed in to change notification settings - Fork 17.6k
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
SITL: Added quadcopter morse example with laser scanner #14370
Conversation
Are those false readings a problem in the data coming from Morse? There's no way we can tweak the rangefinder parameters to use a within-minimum-distance state? |
@peterbarker I'll mess around with the parameters a bit more and see if a solution is possible. |
OK, so I can't get Morse to run with the instructions on ArduPilot.org - even with a whole bunch of hacking. trusty fails because the QuadRotorDynamics class doesn't exit. bionic fails because focal fails because Blender's 2.80 API has changed sufficiently to break Morse's use of it. How are people actually using Morse with ArduPilot? |
Not with ubuntu 20!
ArduPilot/ardupilot_wiki#2782
… On 16 Aug 2020, at 7:51 pm, Peter Barker ***@***.***> wrote:
OK, so I can't get Morse to run with the instructions on ArduPilot.org - even with a whole bunch of hacking.
trusty fails because the QuadRotorDynamics class doesn't exit.
bionic fails because local_data["engines"] goes away with an exception in the Morse libraries in the motors actuator (and is replaced with steer/thrust/something).
focal fails because Blender's 2.80 API has changed sufficiently to break Morse's use of it.
How are people actually using Morse with ArduPilot?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Hi @peterbarker . I have been using Morse + SITL everyday since the past three months on Ubuntu 16/18. It works very nicely with SITL( except rover skid steering, which is a little broken and I mean to fix it soon) |
Matches the value we send for Rover, which is useful until we can reflect on the simulation to discover its maximum range
61a8d1c
to
fc525a0
Compare
I've rebased this on top of changes to the way I've also changed the range of the rangefinder to match the Rover one. Ideally we request the rangefinder config from the simulation and use that, but we do need to know what the max range is. Will merge this once it passes CI. |
LGTM. Thanks! |
Merged, thanks! |
This PR is an attempt to make things simpler and more convinent for some people who might want to use Morse with a laser scanner enabled quad.
An odd thing about this script:
I have placed the laser scanner 1 meter above the quad, and not a few cm's below because on startup the scanner tends to send false readings due to it detecting the ground. Also I have turned off
fastmode
to make obstacle visualization easier.Any suggestion for parameter changes are welcome. Thanks :)
To use: run these two commands in two separate terminals
morse run libraries/SITL/examples/Morse/quad_scanner.py
Tools/autotest/sim_vehicle.py -v ArduCopter --model morse-quad --add-param-file=libraries/SITL/examples/Morse/quad_scanner.parm --console --map
Ill update Morse documentation too if this is merged.