Skip to content
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

Open
wants to merge 9 commits into
base: develop
Choose a base branch
from
Open

Conversation

LuigiPenco93
Copy link
Contributor

No description provided.

@@ -171,6 +163,14 @@ public void update(boolean interactablesEnabled)
desiredHandPoseChanged |= armIKSolvers.get(side).getDesiredHandControlPoseChanged();
}
}
Copy link
Contributor Author

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);

Copy link
Contributor Author

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);

Copy link
Contributor Author

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());

Copy link
Contributor Author

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)
{
Copy link
Contributor Author

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,
Copy link
Contributor Author

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
{
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

extracted robot specific parameters

@LuigiPenco93 LuigiPenco93 marked this pull request as ready for review October 21, 2024 16:40
@LuigiPenco93 LuigiPenco93 changed the title Feature val integration Feature rdx-val integration Oct 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant