[ros-users] Add MESH into planning scene collision object FAILED

Paul Heran Yang heranyang at gmail.com
Sat Mar 10 21:41:20 UTC 2012

Hi all,

I've been trying to add meshes into collision object, but always get error:
"Unable to compute convex hull"

    trimesh_object.type = arm_navigation_msgs::Shape::MESH;
    for (int i = 0; i < 3; i++) {
        geometry_msgs::Point p;
        p.x = i;
        p.y = i+1;
        p.z = i+2;

    // then add {0, 1, 2} into trimesh_object.triangles

    geometry_msgs::Pose pose;


    get_planning_scene_client.call(planning_scene_req, planning_scene_res)

I've followed the instructions on

All I'm trying to do is just to add a simple triangle into the scene, but
so far no luck. The above code just adds {0,1,2},{1,2,3},{2,3,4} into it. I
also tried {0,0,1},{0,1,0},{1,0,0}. Nothing works.

I don't get why there's "unable to compute convex hull" error. Thanks in

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osuosl.org/pipermail/ros-users/attachments/20120310/4e066859/attachment-0003.html>

More information about the ros-users mailing list