From fd1014886b7ab81261cd808dac4775ea94babb0f Mon Sep 17 00:00:00 2001 From: Lorenzo Date: Thu, 29 Jun 2023 18:40:12 +0200 Subject: [PATCH] Add ergoCub openxr teleoperation configuration files --- .../HumanStateVisualizer_ergoCub_openxr.ini | 26 +++ .../xml/RobotStateProvider_ergoCub_openxr.xml | 182 ++++++++++++++++++ 2 files changed, 208 insertions(+) create mode 100644 conf/app/HumanStateVisualizer_ergoCub_openxr.ini create mode 100644 conf/xml/RobotStateProvider_ergoCub_openxr.xml diff --git a/conf/app/HumanStateVisualizer_ergoCub_openxr.ini b/conf/app/HumanStateVisualizer_ergoCub_openxr.ini new file mode 100644 index 000000000..4faa84442 --- /dev/null +++ b/conf/app/HumanStateVisualizer_ergoCub_openxr.ini @@ -0,0 +1,26 @@ +name HumanStateVisualizer + +# Model Configuration options +modelURDFName "model.urdf" +ignoreMissingLinks true +visualizeWrenches false +visualizeFrames true +visualizeTargets true + +# Camera options +cameraDeltaPosition (0.0, 2.0, 0.5) +useFixedCamera true # if set to false, the camera follows the model base link +fixedCameraTarget (0.0, 0.0, 0.0) # this option is unused when useFixedCamera is false +maxVisualizationFPS 65 + +# Link visualization option +visualizedLinksFrame (r_hand_palm l_hand_palm root_link head) +linksFrameScalingFactor 0.1 + +# Targets visualization option +visualizedTargetsFrame ( target_RightHand target_LeftHand target_Pelvis target_Head) +targetsFrameScalingFactor 0.2 + +# Remapper Configuration +humanStateDataPortName "/ergoCub/RobotStateWrapper/state:o" +wearableTargetsWrapperPortName "/HDE/WearableTargetsWrapper/state:o" diff --git a/conf/xml/RobotStateProvider_ergoCub_openxr.xml b/conf/xml/RobotStateProvider_ergoCub_openxr.xml new file mode 100644 index 000000000..eb947693d --- /dev/null +++ b/conf/xml/RobotStateProvider_ergoCub_openxr.xml @@ -0,0 +1,182 @@ + + + + + + 0.01 + /tf + /transformServer + + + + TransformServer + root_link_desired + PoseSensor + (root_link_desired + openxr_head + vive_tracker_right_elbow_pose + vive_tracker_left_elbow_pose) + + + TransformClient + + + + + + + () + false + + + IFrameTransformToIWear + + + + + + 0.01 + model.urdf + root_link + + dynamical + true + false + + 300 + ma27 + 2 + 0.0 + 1.0 + 1.0 + 0.001 + ergoCub + + + QP + 1.0 + 1.0 + + 10.0 + (1.0 1.0) + (700.0 20.0) + (0.0 0.0) + + (root_link, TransformServer::pose::root_link_desired, orientation) + (r_hand_palm, TransformServer::pose::vive_tracker_right_elbow_pose, pose) + (l_hand_palm, TransformServer::pose::vive_tracker_left_elbow_pose, pose) + (head, TransformServer::pose::openxr_head, pose) + + ("l_shoulder_pitch", + "l_shoulder_roll", + "l_shoulder_yaw", + "l_elbow", + "l_wrist_roll", + "l_wrist_pitch", + "l_wrist_yaw", + "r_shoulder_pitch", + "r_shoulder_roll", + "r_shoulder_yaw", + "r_elbow", + "r_wrist_roll", + "r_wrist_pitch", + "r_wrist_yaw", + "torso_pitch", + "torso_roll", + "torso_yaw", + "neck_pitch", + "neck_roll", + "neck_yaw") + + + ( 1.0 0.0 0.0 0.0 + 0.0 0.0 1.0 -0.02 + 0.0 -1.0 0.0 0.05 + 0.0 0.0 0.0 1.0) + (-1.0 0.0 0.0 0.0 + 0.0 0.0 1.0 -0.02 + 0.0 1.0 0.0 0.05 + 0.0 0.0 0.0 1.0) + ( 0.0 -1.0 0.0 0.0 + 0.0 0.0 1.0 0.0 + -1.0 0.0 0.0 0.1 + 0.0 0.0 0.0 1.0) + ( 0.0 1.0 0.0 0.0 + 0.0 0.0 1.0 0.0 + 1.0 0.0 0.0 0.0 + 0.0 0.0 0.0 1.0) + + + ( 0.7 0.7 0.6 ) + ( 0.7 0.7 0.6 ) + ( 0.7 0.7 0.6 ) + 0.7 + 0.7 + 0.7 + + + + + + + ( ) + + + ( ) + + (0.0, 0.0, 0.0, 0.0, 0.0, 0.0) + (0.0, 0.0, 0.0, 0.0, 0.0, 0.0) + + + ( + l_shoulder_roll, r_shoulder_roll) + ( + (1.0, 0.0), + (0.0, 1.0)) + ( + -100.0, -100.0) + ( + 1.4, 1.4) + 0.5 + 0.5 + + + + XSenseIWearRemapper + + + + + + + + 0.01 + /ergoCub/RobotStateWrapper/state:o + + + RobotStateProvider + + + + + + + 0.01 + /HDE/WearableTargetsWrapper/state:o + + + RobotStateProvider + + + + + +