mirror of
https://github.com/soconnor0919/robot-plugins.git
synced 2026-05-08 06:18:55 -04:00
fix(nao6): use joint angles for beckon gesture
Use direct joint control instead of animation which may not exist on all NAOs
This commit is contained in:
+11
-7
@@ -1642,7 +1642,7 @@
|
||||
{
|
||||
"id": "beckon",
|
||||
"name": "Beckon",
|
||||
"description": "Come here gesture using wave",
|
||||
"description": "Come here gesture",
|
||||
"category": "movement",
|
||||
"icon": "arrow-right",
|
||||
"timeout": 2500,
|
||||
@@ -1652,21 +1652,25 @@
|
||||
"properties": {}
|
||||
},
|
||||
"ros2": {
|
||||
"messageType": "std_msgs/msg/String",
|
||||
"topic": "/speech",
|
||||
"messageType": "naoqi_bridge_msgs/msg/JointAnglesWithSpeed",
|
||||
"topic": "/joint_angles",
|
||||
"payloadMapping": {
|
||||
"type": "static",
|
||||
"payload": {
|
||||
"data": "^start(animations/Stand/Gestures/Hello_1)"
|
||||
"joint_names": ["RShoulderPitch", "RShoulderRoll", "RElbowYaw", "RElbowRoll"],
|
||||
"joint_angles": [0.5, 0.3, -1.2, -0.5],
|
||||
"speed": 0.3
|
||||
}
|
||||
}
|
||||
},
|
||||
"implementation": {
|
||||
"type": "ros2_topic",
|
||||
"topic": "/speech",
|
||||
"messageType": "std_msgs/msg/String",
|
||||
"topic": "/joint_angles",
|
||||
"messageType": "naoqi_bridge_msgs/msg/JointAnglesWithSpeed",
|
||||
"messageTemplate": {
|
||||
"data": "^start(animations/Stand/Gestures/Hello_1)"
|
||||
"joint_names": ["RShoulderPitch", "RShoulderRoll", "RElbowYaw", "RElbowRoll"],
|
||||
"joint_angles": [0.5, 0.3, -1.2, -0.5],
|
||||
"speed": 0.3
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user