Hi, all:
I will copy some of the key lines here for illustration:
robot_model_loader::RobotModelLoader robot_model_loader("robot_description");
robot_model::RobotModelPtr kinematic_model = robot_model_loader.getModel();
planning_scene::PlanningScene planning_scene(kinematic_model);planning_scene.checkCollision(collision_request, collision_result, copied_state, acm);
ROS_INFO_STREAM("Test 6: Current state is "
<< (collision_result.collision ? "in" : "not in")
<< " self collision");
As far as I can see, the planning_scene here hasn't introduced any collision objects to the world. Does anyone has any experience about how to introduce collision objects in this scenario? (Either do it within this process or receive a message from other process).
Also, as I read through the list, I found that most of the questions concerning collision_check is about avoiding collision during planning. My question, however, is how to check collision when things are still in their current state.
Any comment is welcome. Thank you very much!