-
Notifications
You must be signed in to change notification settings - Fork 18k
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
Adding a new service to request/get geofence #26459
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.
Thanks for the contribution. This is good start! I'd like to better understand how you see this working in a ROS system - does ArduPilot only store fences and then the ROS computer can read the current fences? What about if the ROS computer wanted to set fences?
@@ -0,0 +1,13 @@ | |||
|
|||
# This service requests the vehicle to arm or disarm its motors. |
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.
Can you fix all the comments that talk about arming?
|
||
if(geofence_request.req) | ||
{ | ||
geofence_data.radius = AP::fence()->get_radius(); |
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.
While ardupilot supports both fence types of AC_FENCE_TYPE_CIRCLE
and AC_FENCE_TYPE_POLYGON
, this message population seems to assume it's a circle.
Also, what is the plan for the PolyFence
support in ArduPilot, which has inclusion/exclusions.
Hello, sorry for the inconsistencies. I will push some changes with better framed messages. Right now I was only working on a getter but yes setter could be implemented as well. I am testing the new message structure that is why I kept this as draft. Will soon put them here for review. Thanks a lot :) |
I wasn't able to work on it so I am closing this draft PR |
Trying to fix issue #25715
Will be adding more geofence messages to this pull request