-
Notifications
You must be signed in to change notification settings - Fork 96
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
mocap: add SetVisionSpeedEstimate #361
base: main
Are you sure you want to change the base?
Conversation
Co-authored-by: miodine <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the pull request! Just one question regarding a comment.
// Global speed estimate from a vision source. | ||
message VisionSpeedEstimate { | ||
uint64 time_usec = 1; // PositionBody frame timestamp UNIX Epoch time (0 to use Backend timestamp) | ||
SpeedBody speed_body = 2; // Global speed (m/s) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just wondering on the frame here? When you see "Global" do you mean in North, East, Down, or Forward, Left, Down? I'm pretty sure "Body" would imply in body frame, so Forward, Left, Down.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @julianoes! Thanks for the review!
I used the same description as in the MAVLink doc, but I guess this is a typo.
However, I see in the VisionPositionEstimate a similar case:
PositionBody position_body = 2; // Global position (m)
Should I fix it too?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Interesting. Might be worth checking what PX4 expects and whether we should update the MAVLink messages description.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For position, PX4 expects NED:
I don't see vision speed being used in PX4. How are you testing this?
Hi, we would like to add the VISION_SPEED_ESTIMATE (103) MAVLink message to the mocap proto.
See https://mavlink.io/en/messages/common.html#VISION_SPEED_ESTIMATE
Relates to issue mavlink/MAVSDK#2497