#include <ros/ros.h>
#include <sensor_msgs/Imu.h>
#include <nav_msgs/Odometry.h>
#include <geometry_msgs/PoseWithCovarianceStamped.h>
#include <tf/transform_broadcaster.h>
#include <tf/transform_listener.h>
#include <memory>
#include <iostream>
Go to the source code of this file.
Functions | |
void | gps_callback (const nav_msgs::OdometryConstPtr &msg) |
void | imu_callback (const sensor_msgs::ImuConstPtr &msg) |
int | main (int argc, char **argv) |
bool | orientationIsValid () |
void | publish_pose () |
Variables | |
bool | first = true |
nav_msgs::Odometry | gps |
geometry_msgs::Quaternion | orientation |
geometry_msgs::Point | origin |
ros::Publisher | origin_pub |
ros::Publisher | pose_pub |
std::unique_ptr < TransformBroadcaster > | tf_broadcaster |
std::unique_ptr < TransformListener > | tf_listener |
void gps_callback | ( | const nav_msgs::OdometryConstPtr & | msg | ) |
Definition at line 63 of file pose_tracker/main.cpp.
void imu_callback | ( | const sensor_msgs::ImuConstPtr & | msg | ) |
Definition at line 51 of file pose_tracker/main.cpp.
int main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 87 of file pose_tracker/main.cpp.
bool orientationIsValid | ( | ) |
Definition at line 24 of file pose_tracker/main.cpp.
void publish_pose | ( | ) |
Definition at line 32 of file pose_tracker/main.cpp.
bool first = true |
Definition at line 22 of file pose_tracker/main.cpp.
nav_msgs::Odometry gps |
Definition at line 19 of file pose_tracker/main.cpp.
geometry_msgs::Quaternion orientation |
Definition at line 18 of file pose_tracker/main.cpp.
geometry_msgs::Point origin |
Definition at line 21 of file pose_tracker/main.cpp.
ros::Publisher origin_pub |
Definition at line 14 of file pose_tracker/main.cpp.
ros::Publisher pose_pub |
Definition at line 13 of file pose_tracker/main.cpp.
std::unique_ptr<TransformBroadcaster> tf_broadcaster |
Definition at line 15 of file pose_tracker/main.cpp.
std::unique_ptr<TransformListener> tf_listener |
Definition at line 16 of file pose_tracker/main.cpp.