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",
|
"id": "beckon",
|
||||||
"name": "Beckon",
|
"name": "Beckon",
|
||||||
"description": "Come here gesture using wave",
|
"description": "Come here gesture",
|
||||||
"category": "movement",
|
"category": "movement",
|
||||||
"icon": "arrow-right",
|
"icon": "arrow-right",
|
||||||
"timeout": 2500,
|
"timeout": 2500,
|
||||||
@@ -1652,21 +1652,25 @@
|
|||||||
"properties": {}
|
"properties": {}
|
||||||
},
|
},
|
||||||
"ros2": {
|
"ros2": {
|
||||||
"messageType": "std_msgs/msg/String",
|
"messageType": "naoqi_bridge_msgs/msg/JointAnglesWithSpeed",
|
||||||
"topic": "/speech",
|
"topic": "/joint_angles",
|
||||||
"payloadMapping": {
|
"payloadMapping": {
|
||||||
"type": "static",
|
"type": "static",
|
||||||
"payload": {
|
"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": {
|
"implementation": {
|
||||||
"type": "ros2_topic",
|
"type": "ros2_topic",
|
||||||
"topic": "/speech",
|
"topic": "/joint_angles",
|
||||||
"messageType": "std_msgs/msg/String",
|
"messageType": "naoqi_bridge_msgs/msg/JointAnglesWithSpeed",
|
||||||
"messageTemplate": {
|
"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