-
Notifications
You must be signed in to change notification settings - Fork 90
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature rdx-val integration #409
base: develop
Are you sure you want to change the base?
Conversation
# Conflicts: # ihmc-high-level-behaviors/src/libgdx/java/us/ihmc/rdx/ui/interactable/RDXHumanoidDoFsWidgets.java
fixed few bugs around rdx
@@ -171,6 +163,14 @@ public void update(boolean interactablesEnabled) | |||
desiredHandPoseChanged |= armIKSolvers.get(side).getDesiredHandControlPoseChanged(); | |||
} | |||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed bug, if the wrench calculator is null, it will skip the armIKSolver part. This means that the IK for the selectable hand didn't work if the robot has no hand
@@ -81,17 +81,17 @@ public RDXDualBlackflyProjection(HumanoidReferenceFrames currentRobotFrames) | |||
{ | |||
this.baseUI = RDXBaseUI.getInstance(); | |||
this.robotZUpFrame = currentRobotFrames.getMidFootZUpGroundFrame(); | |||
robotCameraFrames.set(currentRobotFrames::getSituationalAwarenessCameraFrame); | |||
robotCameraFrames.set(currentRobotFrames::getStereoCameraFrame); | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
renamed to stereo camera, as it's a better description of what those cameras are. Especially considering that we are dropping the blackflies
@@ -97,7 +97,7 @@ public RDXRobotCollidable(FrameShape3DReadOnly shape, | |||
linkFrame = syncedLinkFrame; | |||
|
|||
RigidBodyTransform collisionToLinkFrameTransform = new RigidBodyTransform(); | |||
collisionShapeFrame = new MutableReferenceFrame("collisionShapeFrame" + rigidBodyName, linkFrame); | |||
collisionShapeFrame = new MutableReferenceFrame("collisionShapeFrame" + rigidBodyName + collidableIndex, linkFrame); | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
need the index for robots like valkyrie which have multiple collidables per single rigid body
@@ -112,45 +102,6 @@ public void create() | |||
cameraForTracking = cameraForTrackingSupplier.get(); | |||
getMultiBodyGraphic().loadRobotModelAndGraphics(syncedRobot.getRobotModel().getRobotDefinition(), syncedRobot.getFullRobotModel().getElevator()); | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
extracted all robot specific sensors
@@ -228,14 +226,32 @@ public void create(boolean createToolbox) | |||
parameters.getDefaultSolverConfiguration().setJointVelocityWeight(0.05); | |||
parameters.getDefaultSolverConfiguration().setJointAccelerationWeight(0.0); // As soon as we increase this guy, we inject springy behavior. | |||
|
|||
parameters.getDefaultSolverConfiguration().setEnableJointVelocityLimits(false); | |||
parameters.getDefaultSolverConfiguration().setEnableJointVelocityLimits(true); | |||
|
|||
if (robotModel != null) | |||
{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
made it general for any robot
initialConfigMessage.getInitialJointAngles().set(shzIndex, robotSide.negateIfRightSide(-0.5f)); | ||
initialConfigMessage.getInitialJointAngles().set(elyIndex, -2.2f); | ||
// TODO add also default for wrist joints if they exist | ||
List<ArmJointName> armJointNames = Arrays.asList(ArmJointName.SHOULDER_PITCH, ArmJointName.SHOULDER_ROLL, ArmJointName.SHOULDER_YAW, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
generality for all robots
@@ -7,47 +7,23 @@ public enum VRTrackedSegmentType | |||
{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
extracted robot specific parameters
No description provided.