change co to cylinder

This commit is contained in:
v4hn 2017-03-11 12:12:52 +01:00
parent 9717250908
commit e0e1c77eb4

View File

@ -26,8 +26,10 @@ void spawnObject(){
o.primitive_poses[0].position.z= 0.84;
o.primitive_poses[0].orientation.w= 1.0;
o.primitives.resize(1);
o.primitives[0].type= shape_msgs::SolidPrimitive::SPHERE;
o.primitives[0].dimensions.resize(1, 0.03);
o.primitives[0].type= shape_msgs::SolidPrimitive::CYLINDER;
o.primitives[0].dimensions.resize(2);
o.primitives[0].dimensions[0]= 0.23;
o.primitives[0].dimensions[1]= 0.03;
psi.applyCollisionObject(o);
}