-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Add rangesensor module #2158
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
Add rangesensor module #2158
Conversation
40d4df4
to
8e768cb
Compare
It looks fine for me. It this still incomplete or ready to be merged ? |
I had an epiphany tonight to improve efficiency so will update tomorrow.
…On Nov 2, 2017 22:45, "Gautier Hattenberger" ***@***.***> wrote:
It looks fine for me. It this still incomplete or ready to be merged ?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#2158 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ACtEQxdW4K7Nn4goGim30PTw-7K7U4H2ks5syjgWgaJpZM4QP8Yz>
.
|
ce17480
to
d99711c
Compare
…add range sensors back to the ardrone model directly??
* fixed unresponsive forcefield on the range sensors
…ested out: it works!
* Tried to read out the pose of the sensors, however because of an error in gazebo it now retrieves it from the sensor name * Tried to send out the abi message with an array of values, instead of each individually, however it seems that this can not be compiled on paparazzi
…o and send values and rotation as array through abi *Resolved gazebo issue by placing the <pose> directly underneath sensor *Resolved abi issue by defining the first field as a non-pointer (like array size *Selecting sonar by placing AGL in the sensor name in the gazebo model, so it will be selected as the sonar
…nd generic forcefield generation * Gazebo now manually reads out the orientation from the ray sensors and sends that in the abi message * Range forcefield module uses the orientation to create a forcefield in any direction the ray sensor is in
…can now be defined from the airframe, for both NPS an AP *[gazebo] The pose from gazebo will now be compared with the assigned amount of sensors and orientation from the airframe file, and will give out a warning if it does not work *[mag_pitot_uart] the mag_pitot_uart only get the number and orientations given from the airframe file. Only the ID number coming from the laser ring can be the check if that is done properly
… range laser array
…esensor specific gazebo airframe file"
… from mag_pitot_uart and moved to a separate module
… and add forward obstacle detector
d99711c
to
643527b
Compare
…ent to the abi bindings
643527b
to
75fc0e0
Compare
I'm not completely satisfied with the new |
@knmcguire This is a bit different than the original pull request. I removed the RANGE_SENSOR_ARRAY message and now have the range_forcefield bind to the OBSTACLE_DETECTION message (which now has an elevation field). This way the force field will work with any sensor that can measure distance to an obstacle and not only the range array. The range_forcefield now also stores the nearest distance experienced in the xyz directions over time so that it could still work if you had multiple sensors pointed in the same direction (or at angles not parallel with the xyz plane. This formulation will also ensure that if you have multiple sensors in the same/similar direction that One important difference is that the resultant velocity command will never exceed the max_vel setting of the range_forcefield. The range is also now sent periodically rather than asynchronously. @knmcguire let me know if this is good or if you had a different plan for this. @gautierhattenberger I implemented a handler (I hope this is what you meant). The only issue I had was adding an & in the header section. Adding it like & caused the flight_plan.h generator to fail and adding it like & worked fixed the flight_plan.h generator but broke the modules.h generator. So I ended up just using a nested if. |
@kirkscheper Actually, what you added was exactly what I had in mind for a future pull request, so I am totally okay with it:) |
either use 'vars' (auto binding and callback) or 'handler' (auto binding but custom callback and variable definition), not both at the same time
plus use the 'And' macro to hide the illegal characters
@kirkscheper please have a look at my proposed changes in paparazzi/pull_request_add_rangesensor_module branch I made a few changes to the ocaml part to be a bit more "ocaml-ish". Regarding the issue with |
* added rangesensors to gazebo model and NPS * added module to handle the range sensors * added sender IDS and added to abi messages * added abi message to flight plan guided
This pull request includes several items relating to adding range sensors to MAVs:
This replaces #2114 due to conflicting files.