Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

How does RViz receive from MoveIt! the collision data? #55

130s opened this Issue Mar 6, 2014 · 3 comments


None yet
2 participants

130s commented Mar 6, 2014

This isn't a specific issue/question to hironx at all; it's rather my homework that's asked by a new hironx user.

I guess it's what FCL returns. I need to study. Don't touch. Comments welcomed though.

The new user above is wondering if there's an interface in MoveIt! (or directly from FCL if my guess is appropriate) to access the collision information, it would become possible in hrpsys or any program to do their own collision avoidance without depending on move_group.

@130s 130s added the question label Mar 6, 2014

@130s 130s self-assigned this Mar 6, 2014


130s commented May 2, 2014

https://github.com/start-jsk/rtmros_common/blob/master/hrpsys_ros_bridge/scripts/collision_state.py with https://github.com/start-jsk/rtmros_common/blob/master/hrpsys_ros_bridge/launch/collision_detector.launch launch file is the good example of how to get collision state. I'm not sure on MoveIt case.

Thank you, for hrpsys collision detection (once hrpsys collision detection is sufficiently enabled on hiro (ie. #36, and maybe a few more tickets) I think I'll have to document it).

For MoveIt!, the following diagram from Overview page explains well.


130s commented May 28, 2014

Looks like through Planning Scene in MoveIt! you can get a trigger of when the collision occurs in C++. See tutorial.

My guess is that combining something like follwoing would do:

  1. Watch if collision happens by collision_result.collision.
  2. Once it does, get the pose info via /move_group/monitored_planning_scene topic.

@k-okada k-okada closed this Jul 11, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment