ADVRHumanoids / iit-centauro-ros-pkg

2 stars 0 forks source link

Add pinocchio capsules #36

Open IoannisDadiotis opened 1 year ago

IoannisDadiotis commented 1 year ago

This pull request is for generating a urdf for centauro that has maximum one collision object for each link but at the same time can be interpreted as capsule shape from various urdf-processing libraries, e.g. pinocchio. This is done by including only the cylinder objects in the urdf and adding a tag that can be processed by pinocchio etc.

IoannisDadiotis commented 1 year ago

The python script for generating the file is probably not the best one and for simplicity I just placed it at centauro_test.

@alaurenzi If you think that this PR should be merged feel free to improve or transfer the script where you think it fits better in this repo. Consider also if the script should be used for autogenerating the urdf file each time new files are generated

I have checked the generated collisions by visualizing the pinocchio::GeometryModel generated from the urdf. The capsules are the same as the ones in */centauro_capsule.urdf. image