This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| for (unsigned i = 0 ; i < jointVel.getSize() ; ++i) | |
| { | |
| float vel = jointVel[i]; | |
| AL::ALValue limits = m_motionProxy->getLimits(jointName[i]); | |
| if (vel > 0.0f) | |
| angles.arrayPush(limits[0][1]); //max | |
| else if (vel < 0.0f) | |
| angles.arrayPush(limits[0][0]); //min |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import rospy | |
| import math | |
| import tf | |
| if __name__ == '__main__': | |
| rospy.init_node('look_up_pepper_tf') | |
| listener = tf.TransformListener() | |
| trans = [] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| if [ "$(hostname)" == 'Dell-PC' ]; then | |
| echo "This pc is Dell-PC" | |
| pc_dell_pc=true | |
| fi | |
| if [ "$pc_dell_pc" = true ] ; then | |
| echo 'Dell pc check' | |
| fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: ['NeckYaw', 'NeckPitch', 'HeadPitch', 'HeadRoll', 'LEyeYaw', 'LEyePitch', 'REyeYaw', 'REyePitch', 'TrunkYaw', 'LHipYaw', 'LHipRoll', 'LHipPitch', 'LKneePitch', 'LAnklePitch', 'LAnkleRoll', 'RHipYaw', 'RHipRoll', 'RHipPitch', 'RKneePitch', 'RAnklePitch', 'RAnkleRoll', 'LShoulderPitch', 'LShoulderYaw', 'LElbowRoll', 'LElbowYaw', 'LWristRoll', 'LWristYaw', 'LWristPitch', 'RShoulderPitch', 'RShoulderYaw', 'RElbowRoll', 'RElbowYaw', 'RWristRoll', 'RWristYaw', 'RWristPitch'] | |
| position: [0.0011198638558120363, 0.0199619836411628, 0.00800388535599487, 0.007115997927261007, 0.0, 0.0, 0.0, 0.0, -0.008644184289032597, 0.010997223159075456, 0.008898095766382428, -0.11475175707583844, 0.24763984418165202, -0.13871817692999452, 0.0010332776404101411, 0.010997019495483241, 0.008867129830932338, -0.09116471056488372, 0.19049250220840877, -0.10515787929845143, 0.001064244060971629, 1.7093324732498913, -0.0097031549001955, -1.3006052480378474, -0.18327574744861536, -0.35009075918831256, -0.0022313540171367287, 0.000250023 |
NewerOlder