Implement floor inclination and various properties#18
Implement floor inclination and various properties#18lorycontixd wants to merge 6 commits intogbionics:mainfrom
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.