7 #include <geometry_msgs/PoseStamped.h> 15 geometry_msgs::Pose pose_ugv_od_to_ugv_bl;
16 geometry_msgs::PoseStamped final_pose_ugv;
20 tf2::toMsg(ugv_od_ugv_bl_transform, pose_ugv_od_to_ugv_bl);
22 final_pose_ugv.header = msg.header;
23 final_pose_ugv.header.frame_id =
"ugv_odom";
24 final_pose_ugv.pose = pose_ugv_od_to_ugv_bl;
28 int main(
int argc,
char** argv){
29 ros::init(argc, argv,
"local_transform_node");
34 pub = node.
advertise<geometry_msgs::PoseStamped>(
"/odometry/filtered/ugv_nav", 1);
void publish(const boost::shared_ptr< M > &message) const
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)
void fromMsg(const A &, B &b)
Publisher advertise(const std::string &topic, uint32_t queue_size, bool latch=false)
ROSCPP_DECL void spinOnce()