-
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
Winch and Gripper plugins #308
Conversation
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.
Looking nice! 🚀
protos/gripper/gripper.proto
Outdated
RESULT_COMMAND_DENIED_LANDED_STATE_UNKNOWN = 6; // Command refused because landed state is unknown | ||
RESULT_COMMAND_DENIED_NOT_LANDED = 7; // Command refused because vehicle not landed |
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.
Do those make sense for a gripper? 🤔
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.
Ah yes, sorry. I forgot to narrow these down. I copied the struct from actions.proto
initially 🙈
I have to check which responses are possible to a vehicle command.
protos/gripper/gripper.proto
Outdated
RESULT_VTOL_TRANSITION_SUPPORT_UNKNOWN = 9; // Hybrid/VTOL transition support is unknown | ||
RESULT_NO_VTOL_TRANSITION_SUPPORT = 10; // Vehicle does not support hybrid/VTOL transitions | ||
RESULT_PARAMETER_ERROR = 11; // Error getting or setting parameter | ||
RESULT_UNSUPPORTED = 12; // Action not supported |
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.
Same here: does that happen for the gripper?
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.
I think it could if the gripper commands are not implemented, e.g. for an older PX4 version.
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.
RESULT_UNSUPPORTED
is one of the few that makes sense
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.
Would it make sense to support all of the possible results that the command sender can return?
In case of simple systems like winches and grippers, the results NoSystem
, ConnectionError
, and Timeout
for example are basically the same.
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.
Aha, it seems that the grpc code auto-generation at least expects there to be a NoSystem
result, so I can't remove that one.
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.
They are different though.
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.
🚀
@JonasVautherin @julianoes there are now the following possible results:
|
7b763ee
to
74d72d8
Compare
Just squashed the whole thing into a single commit |
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.
🚀
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.
Nice, thanks for that!
Co-authored-by: Jonas Vautherin <jonas.vautherin@protonmail.ch>
Sorry, that's what happens when I use the github web GUI to make changes to a file 😅 |
Related PRs
Description
Message definitions for Winches and Grippers. This reflects the following mavlink messages:
and their submessages for the gripper and winch actions, as well as the winch status.
Please don't merge before I squashed the commits