-
Notifications
You must be signed in to change notification settings - Fork 3
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
Set Initial Joint Configuration for Coman legs with feet in ground contact #17
Comments
Does anybody have any idea how to solve this issue? Starting the simulation with stretched legs in a singularity configuration is not a good idea, but bending knees and starting without foot-ground-contact with the current implementation also is very bad... |
Calculate bbox of current visual and align with ground_plane, or more ndehio [email protected] schrieb am Mi., 9. Nov. 2016, 19:36:
|
Sorry, I don't understand what you are meaning. Could you please explain this idea a bit more in detail? |
Well, as I said, you need to calculate the bbox for the current visual that results from the commanded joint configuration of the robot. Then you need to find the object in the world that is closest to the robot and -- assuming gravity points in -Z -- is located below the robot. Then you calculate the distance between the lower part of the robot's bb from the other object's bb. Finally you shift the robot down by the calculated amount. In the simplest case it is just the ground_plane. |
The first part just projects the origin of the robot to its lowest part depending on the joint configuration. |
I just tried the new feature setInitialConfigurationForModel with Coman.
It seems that joints are moved assuming a fixed base.
This way it is impossible to bend the knees without loosing ground contact.
Furthermore, the joint-id-numbering seems to be wrong.
In its current state, the feature is not helpful for setting the initial configuration for the Coman lowerbody.
Here a piece of code from my ops file:
var rstrt.kinematics.JointAngles initJointAngles = rstrt.kinematics.JointAngles(numjoints_fullbody)
left leg
initJointAngles.angles[2] = +0.70;
right leg
initJointAngles.angles[8] = +0.70;
gazebo.setInitialConfigurationForModel("robotmodel", initJointAngles);
The text was updated successfully, but these errors were encountered: