Skip to content

Conversation

@glannuzel
Copy link
Member

No description provided.

@glannuzel glannuzel requested a review from FabienDanieau April 24, 2023 14:13
@glannuzel glannuzel self-assigned this Apr 24, 2023
@glannuzel glannuzel linked an issue Apr 24, 2023 that may be closed by this pull request

private float ChangeAngleRange(float orbita_angle)
{
float modified_angle = orbita_angle % (Mathf.Deg2Rad*360);
Copy link
Collaborator

Choose a reason for hiding this comment

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

I am not sure about this

{
containNeckCommand = true;
headOrientation[2] = kvp.Value;
headOrientation[2] = -kvp.Value;
Copy link
Collaborator

Choose a reason for hiding this comment

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

There is a minus for neck_yaw in jointserviceserver and also here. We should remove both?

Copy link
Member Author

Choose a reason for hiding this comment

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

No, we want to keep both:

  • the first one is the value returned for the joint when using GetJointState, which needs a minus to be consistent with the value returned by a real robot
  • the second one is the value used to update the head rotation in the scene, which needs to be opposite to the previous one so that the head rotation in the simu is consistent with the operator head movement

@FabienDanieau FabienDanieau merged commit dc70d73 into develop May 2, 2023
@FabienDanieau FabienDanieau deleted the 21-range-of-neck-angles-different-from-real-robot branch May 2, 2023 14:07
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.

Range of neck angles different from real robot

3 participants