mirror of
https://github.com/soconnor0919/robot-plugins.git
synced 2026-03-23 19:27:52 -04:00
feat: Add wake_up and rest actions
This commit is contained in:
@@ -1127,6 +1127,52 @@
|
|||||||
"transformFn": "getRobotInfo"
|
"transformFn": "getRobotInfo"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "wake_up",
|
||||||
|
"name": "Wake Up",
|
||||||
|
"description": "Initialize robot motors and stand up",
|
||||||
|
"category": "movement",
|
||||||
|
"icon": "zap",
|
||||||
|
"timeout": 15000,
|
||||||
|
"retryable": true,
|
||||||
|
"parameterSchema": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {}
|
||||||
|
},
|
||||||
|
"ros2": {
|
||||||
|
"topic": "/dummy",
|
||||||
|
"messageType": "std_msgs/msg/String",
|
||||||
|
"payloadMapping": {
|
||||||
|
"type": "static",
|
||||||
|
"payload": {
|
||||||
|
"data": "wake_up"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "rest",
|
||||||
|
"name": "Rest",
|
||||||
|
"description": "Disable motors and sit down safely",
|
||||||
|
"category": "movement",
|
||||||
|
"icon": "moon",
|
||||||
|
"timeout": 15000,
|
||||||
|
"retryable": true,
|
||||||
|
"parameterSchema": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {}
|
||||||
|
},
|
||||||
|
"ros2": {
|
||||||
|
"topic": "/dummy",
|
||||||
|
"messageType": "std_msgs/msg/String",
|
||||||
|
"payloadMapping": {
|
||||||
|
"type": "static",
|
||||||
|
"payload": {
|
||||||
|
"data": "rest"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user