20 #include <nav_msgs/Odometry.h>
38 X_ = msg->pose.pose.position.x;
39 Y_ = msg->pose.pose.position.y;
40 Z_ = msg->pose.pose.position.z;
41 t_ = msg->header.stamp.toSec();
44 Station(ros::NodeHandle n,std::string odom_topic)
double X_
Definition: station.h:31
Station(ros::NodeHandle n, std::string odom_topic)
Definition: station.h:44
double getY() const
Definition: station.h:57
double Y_
Definition: station.h:32
void setPosition(double X, double Y, double Z)
Definition: station.h:48
double getZ() const
Definition: station.h:58
double t_
Definition: station.h:34
ros::Subscriber odom_subscriber_
Definition: station.h:35
void odom_receive(nav_msgs::OdometryConstPtr msg)
Definition: station.h:36
double Z_
Definition: station.h:33
void setTime(double t)
Definition: station.h:52
double getT() const
Definition: station.h:59
double getX() const
Definition: station.h:56