7 #include <dynamic_tf_publisher/SetDynamicTF.h> 10 dynamic_tf_publisher::SetDynamicTF SetTf;
11 SetTf.request.freq = 10;
13 SetTf.request.cur_tf.header.frame_id = parent_frame_id;
14 SetTf.request.cur_tf.child_frame_id =
frame_id;
15 SetTf.request.cur_tf.transform = transform;
21 for(
int i=0; i<msg->transforms.size(); i++){
22 CallSetDynamicTf(msg->transforms[i].header.frame_id, msg->transforms[i].child_frame_id, msg->transforms[i].transform);
28 ros::init(argc, argv,
"specific_transform_subscriber");
ServiceClient serviceClient(const std::string &service_name, bool persistent=false, const M_string &header_values=M_string())
Subscriber subscribe(const std::string &topic, uint32_t queue_size, void(T::*fp)(M), T *obj, const TransportHints &transport_hints=TransportHints())
ROSCPP_DECL void init(int &argc, char **argv, const std::string &name, uint32_t options=0)
bool call(MReq &req, MRes &res)
ROSCPP_DECL void spin(Spinner &spinner)
ROSCPP_DECL bool waitForService(const std::string &service_name, int32_t timeout)