-
Notifications
You must be signed in to change notification settings - Fork 60
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 api for robot charging tasks #283
base: main
Are you sure you want to change the base?
Changes from all commits
68f0064
99304d6
d87b87b
50ee58e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"$schema": "https://json-schema.org/draft/2020-12/schema", | ||
"$id": "https://raw.githubusercontent.com/open-rmf/rmf_ros2/main/rmf_fleet_adapter/schemas/event_description__charge_battery.json", | ||
"title": "Charge Battery Event", | ||
"description": "Charge a robot's battery", | ||
"type": "object", | ||
"properties": { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think right now the battery level to which the robot charges up to is statically defined in the fleet config. In the future it would be good to specify this % in the |
||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"$schema": "https://json-schema.org/draft/2020-12/schema", | ||
"$id": "https://raw.githubusercontent.com/open-rmf/rmf_ros2/main/rmf_fleet_adapter/schemas/task_description__charge_battery.json", | ||
"title": "Charge Battery Task", | ||
"description": "Charge a robot's battery", | ||
"$ref": "event_description__charge_battery.json" | ||
} |
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 don't think we necessarily need this
event_description
schema since we don't support anyChargeBattery
events inrmf_task
.With this description, users can theoretically submit a composable task with a ChargeBattery event injected between other activities but the fleet adapter will not find the right builder from
rmf_task_sequence
to generate theModel
andDescription
for this event.Not a blocker imo but it would be good to test what happens when such a compose task is submitted to make sure any errors are gracefully handled.