Update link parameters during simulation #3850
-
I am trying to simulate multiple robots with variations in link lengths and radii which in turn effect their mass and inertia. I can use the |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
No dynamic changes for link length or joint frame etc. you could use the urdf editor to load a urdf, change stuff and programmatic create an instance. see in pybullet_utils |
Beta Was this translation helpful? Give feedback.
-
You can generate a new version of the reference robot using a python function and a xml packages. It is a simple trick but it works. The main idea is to load the xml file (URDF files are based on xml) and generate an additional file in a temporal location with the new size values.
|
Beta Was this translation helpful? Give feedback.
-
An example of how the link lengths could be changed online for a simple cylindrical link:
Using the
However I could not make it work with the collision tag in the urdf file. |
Beta Was this translation helpful? Give feedback.
No dynamic changes for link length or joint frame etc. you could use the urdf editor to load a urdf, change stuff and programmatic create an instance. see in pybullet_utils