6 #include <ed/models/loader.h>
8 #include <ros/node_handle.h>
9 #include <ros/advertise_service_options.h>
37 ros::AdvertiseServiceOptions opt_set_entity =
38 ros::AdvertiseServiceOptions::create<ed_msgs::SetEntity>(
56 if (req.action == ed_msgs::SetEntity::Request::ADD)
74 res.error_msg =
"No shape could be loaded for type '" + req.type +
"'.";
77 else if (req.action == ed_msgs::SetEntity::Request::DELETE)
81 else if (req.action == ed_msgs::SetEntity::Request::UPDATE_POSE)
90 e_new->setPose(new_pose);
96 res.error_msg =
"Entity '" + req.id +
"' does not exist.";