Unknown Frame error while running object adding node in moveit.
I am running demo.launch (/move_group/fake_controller_joint_states) , But whenever i run add_collision node(c++) moveit terminal throw Unknown frame: error.
i have successfully build my catkin environment .
int main(int argc, char **argv)
ros::init(argc, argv, "add_collision_objct");
ros::NodeHandle nh;
ros::AsyncSpinner spin(1);
spin.start();
moveit::planning_interface::PlanningSceneInterface current_scene;
sleep(5.0);
moveit_msgs::CollisionObject cylinder;
cylinder.id = "moveit_seven_dof";
shape_msgs::SolidPrimitive primitive;
primitive.type = primitive.CYLINDER;
primitive.dimensions.resize(3);
primitive.dimensions[0] = 0.6;
primitive.dimensions[1] = 0.2;
geometry_msgs::Pose pose;
pose.orientation.w = 1.0;
pose.position.x = 0.0;
pose.position.y = -0.1;
pose.position.z = 0.1;
cylinder.primitives.push_back(primitive);
cylinder.primitive_poses.push_back(pose);
cylinder.operation = cylinder.ADD;
std::vector<moveit_msgs::CollisionObject> collision_objects;
collision_objects.push_back(cylinder);
current_scene.addCollisionObjects(collision_objects);
ros::shutdown();
return 0;
}
Melodic ubantu 18.04.4 LTS 3.28.2
Plz Help me with this