-
Notifications
You must be signed in to change notification settings - Fork 4
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
Implement floor inclination and various properties #18
base: main
Are you sure you want to change the base?
Conversation
Implementation doubts for the future:
|
- Generalised urdf_path input for robotModel class to pass either string or a pathlib object - [To review] Added save_xml flag on robotModel.get_mujoco_model to save the modified xml file
The issue is most likely raised from this line in Adam when used on a temporary file. |
@CarlottaSartore Adding you as a reviewer for starting the merging process. |
Current usage of floor definition: mujoco_instance = MujocoSimulator()
mujoco_instance.load_model(
robot_model_init,
s=[-0.55, 0],
xyz_rpy=np.asarray([0, 0, initial_height, 0.5, 0, 0]),
floor_opts={
"friction" : 0.5,
"inclination_deg" : [0., 10., 0.]
},
) Currently accepted
If an invalid key is passed, an exception is raised. |
… with associated default values taken from mujoco
ℹ️ Now separated into mujoco's 3 different types of contact frictions: mujoco_instance = MujocoSimulator()
mujoco_instance.load_model(
robot_model,
s=[-0.55, 0],
xyz_rpy=np.asarray([0, 0, initial_height, 0.5, 0, 0]),
floor_opts={
"sliding_friction" : 1.,
"torsional_friction" : 0.01,
"rolling_friction" : 0.0001,
"inclination_deg" : [0, 10.0, 0]
},
) |
No description provided.