Skip to content
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

Allow to attach a robot at a specified frame. #91

Merged
merged 5 commits into from
May 18, 2019

Conversation

jmirabel
Copy link
Contributor

58118f0 makes the MeshLoader static. This is questionable since the FCL objects will not be released even after destroying a problem. When relaunching the same script however, it speeds up creating the robot, since the mesh files are already parsed and stored into memory.

@jmirabel
Copy link
Contributor Author

Please, wait before merging this. It is incomplete.

@jmirabel jmirabel changed the title Allow to attach a robot at a specified frame. [WIP] Allow to attach a robot at a specified frame. Apr 16, 2019
@jmirabel jmirabel changed the title [WIP] Allow to attach a robot at a specified frame. Allow to attach a robot at a specified frame. Apr 16, 2019
@jmirabel
Copy link
Contributor Author

It is now ready.

@jmirabel
Copy link
Contributor Author

For reference, this implement thread safety in class Frame. #74

@jmirabel jmirabel merged commit c3bf325 into humanoid-path-planner:devel May 18, 2019

hppDout (notice, "Finished parsing URDF file.");

GeomModel geomModel;

std::vector<std::string> baseDirs = ::pinocchio::rosPaths();
fcl::MeshLoaderPtr loader (new fcl::CachedMeshLoader);
::pinocchio::urdf::buildGeom(model, urdfStream, ::pinocchio::COLLISION, geomModel, baseDirs, loader);
static fcl::MeshLoaderPtr loader (new fcl::CachedMeshLoader (fcl::BV_OBB));
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@stonneau your problem comes from here. Before, we used BV_OBBRSS. OBB-RSS bounding volume allows distance computation, while OBB does not. I switched to OBB because it takes much less memory.

I see two ways of solving this issue:

  • modify hpp-fcl so that OBB can handle distance computation. I believe that it isn't hard to implement but that it will be slower than OBBRSS.
  • make the BV type modifiable somehow.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The next HPP release will be done with OBBRSS. We will include the implementation of the features above in a next release.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adressed in coal-library/coal#70

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I haven't benchmarked the performances though. @stonneau are they critical for its use in rbprm ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant