ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

` shapes::Mesh* navstar_shape = shapes::createMeshFromResource("package://altius_arm/meshes/NAVSTAR_GPS_Satellite.dae"); shape_msgs::Mesh navstar_mesh; shapes::ShapeMsg navstar_mesh_msg = navstar_mesh; shapes::constructMsgFromShape(navstar_shape,navstar_mesh_msg); navstar_collision_object.meshes[0] = navstar_mesh; navstar_collision_object.mesh_poses[0] = navstar_pose; navstar_collision_object_topic = node.advertise<moveit_msgs::collisionobject>("collision_object",0);

Using a templated typedef solves it, props to`Nandan Banerjee

`

shapes::Mesh* navstar_shape = shapes::createMeshFromResource("package://altius_arm/meshes/NAVSTAR_GPS_Satellite.dae");
 shape_msgs::Mesh navstar_mesh;
 shapes::ShapeMsg navstar_mesh_msg = navstar_mesh;
 shapes::constructMsgFromShape(navstar_shape,navstar_mesh_msg);
 navstar_collision_object.meshes[0] = navstar_mesh;
 navstar_collision_object.mesh_poses[0] = navstar_pose;
 navstar_collision_object_topic = node.advertise<moveit_msgs::collisionobject>("collision_object",0);

node.advertise<moveit_msgs::CollisionObject>("collision_object",0);

Using a templated typedef solves it, props to`to Nandan Banerjee