transform_broadcaster.h
Go to the documentation of this file.
1 /*
2  * Copyright 2017 Fraunhofer Institute for Manufacturing Engineering and Automation (IPA)
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9 
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 
18 #ifndef ROS_TRANSFORM_BROADCASTER_H_
19 #define ROS_TRANSFORM_BROADCASTER_H_
20 
21 #include "tfMessage.h"
22 
23 namespace tf
24 {
25 
27  {
28  public:
30 
32  {
34  }
35 
36  void sendTransform(geometry_msgs::TransformStamped &transform)
37  {
38  internal_msg.transforms_length = 1;
39  internal_msg.transforms = &transform;
41  }
42 
43  private:
44  tf::tfMessage internal_msg;
46  };
47 
48 }
49 
50 #endif
51 
void publish(const boost::shared_ptr< M > &message) const
void sendTransform(geometry_msgs::TransformStamped &transform)
Definition: tf.h:24
Publisher advertise(const std::string &topic, uint32_t queue_size, bool latch=false)
void init(ros::NodeHandle &nh)


cob_hand_bridge
Author(s): Mathias Lüdtke
autogenerated on Tue Oct 20 2020 03:35:57