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

How to check if the geometric wrap meets expectations? #588

Open
zichunxx opened this issue Nov 5, 2022 · 1 comment
Open

How to check if the geometric wrap meets expectations? #588

zichunxx opened this issue Nov 5, 2022 · 1 comment

Comments

@zichunxx
Copy link

zichunxx commented Nov 5, 2022

Hi!

I have wrapped my robot links with fcl::Capsule and the code snippet is shown below.

  std::shared_ptr<fcl::CollisionGeometry<double>> capsule_geo (new fcl::Capsule<double> (radius, height));
  fcl::Transform3<double> t = fcl::Transform3d::Identity();
  t.linear() = this_mat.block<3, 3>(0, 0);
  t.translation() = this_mat.block<3, 1>(0, 3);
  auto *b = new fcl::CollisionObject<double> (capsule_geo, t);

When robot links collide with obstacles that are represented by octree, however, cdata.result.isCollision() returns false.

The octomaps of obstacles are obtained with sensor and these poses can be guaranteed.

For fcl::CollisionObject, if its base frame is different from my robot base, then the above process will result in a wrong transformation to capsules.

So, my question is, how to check the base frame of fcl::Capsule. If it is different from my robot base frame, then how can I modify it?

Thanks!

@zichunxx
Copy link
Author

zichunxx commented Nov 7, 2022

Almost the same issue with #344

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

No branches or pull requests

1 participant