-
Notifications
You must be signed in to change notification settings - Fork 991
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 support to DISTANCE_SENSOR msg coder/decoder #264
Comments
Ideally, this has the following features:
|
A decoder probably makes more sense since it is better to connect whatever low level peripherals you want (e.g Laser ranger) to your flight controller. For the decoder to ROS, see the flow plugin. Add a appropriate handler in a new plugin and send in a a PR :D |
PX4 implementation would involve adding a mavlink message stream to read from the distance sensor uORB topic. |
@mhkabir thanks for your inputs. I wasn't really asking to this to be implemented, more like this is an ongoing implementation where ideas are welcomed :D |
Plugin almost done, by #292 . Need test and fix todo. |
(#292 merged, my fixes also uses that number. Perhaps better use this issue, but too late) |
@vooon new sensor type was added: https://github.com/mavlink/mavlink/pull/381/files. So, ideally @tfoote could add |
Another thing: mavlink/mavlink#383 - can this enum be added then to |
@TSC21 as soon as it merged i will do release of mavlink package. |
OK. Any ideas how to then include it here: https://github.com/TSC21/mavros/blob/external_sensors_connect/mavros_extras/src/plugins/distance_sensor.cpp#L231? |
Update: #296 (comment) |
Make a std::array with orientations then choose one by orientation enum. As i understand tf: you don't need actually rotate FCU frame_id, only publish sensor orientation value. |
OK I think I will do this in a next PR. You can merge this one in the mean time, if everything's ok. |
@vooon mavlink/mavlink#383 was merged. You can do mavlink release now. |
Already done. |
Why do we need parent frame_id, if we only want tf between
We don't rotate fcu frame. We rotate the sensor id accoriding to the enum and then the tf between the fcu and the sensor is published, with the proper orientation of the sensor being updated. |
And do you merge now or are you waiting for the orientation stuff? |
Waiting orientation and test results. |
Results from which side? Cause ROS side working ok. I'm getting the PX4 side worked on now. |
Ok, if you say that plugin works, it's enough for now. I can merge current PR if you need that. But probably better merge when all features done. |
No need to merge, unless some other PR is added. I'm advancing to create the |
Because it not depend on uas data it may be simple helper function in
|
I mean src/lib, and add function definition to utils.h |
so what do I put in I really can't state the use of a cpp in |
C++ and C split definition and implementation in Then just use |
OK that was what I was already doing :) thanks |
In |
No! Inline for |
Willco 👍 |
This is tested and working ;) so can be closed, since #292 has been merged! |
Removed protobuf hacks. Fixes mavlink#22
Related to PX4/PX4-Autopilot#1986.
The text was updated successfully, but these errors were encountered: