viz.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <math.h>
4 #include <string>
5 
6 #include <ros/ros.h>
7 #include <tf/tf.h>
8 #include <sensor_msgs/MagneticField.h>
9 #include <geometry_msgs/PoseStamped.h>
10 #include <geometry_msgs/Point.h>
11 #include <rosflight_msgs/Attitude.h>
12 #include <visualization_msgs/Marker.h>
13 
14 namespace rosflight_utils
15 {
16 
17 
18 class Viz
19 {
20 public:
21  Viz();
22 
23 private:
24 
25  // Node handles, publishers, subscribers
28 
29  // Magnetometer visualization pubs and subs
33 
34  // Attitude visualization pubs and subs
37 
38  // Variables
39  tf::Quaternion q_att_;
40  std::vector<geometry_msgs::Point> pts_list_;
41  double mag_sum_;
43  std::string fixed_frame_ = "fixed_frame";
44 
45  // Functions
46  void magCallback(const sensor_msgs::MagneticFieldConstPtr &msg);
47  void attCallback(const rosflight_msgs::AttitudeConstPtr &msg);
48 };
49 
50 } // namespace rosflight_utils
ros::NodeHandle nh_
Definition: viz.h:26
ros::Subscriber att_sub_
Definition: viz.h:35
void magCallback(const sensor_msgs::MagneticFieldConstPtr &msg)
Definition: viz.cpp:27
ros::Publisher pose_pub_
Definition: viz.h:36
tf::Quaternion q_att_
Definition: viz.h:39
ros::Publisher pts_pub_
Definition: viz.h:32
This file defines a simple PID controller to be used by other classes to implement a PID control loop...
Definition: simple_pid.h:44
ros::NodeHandle nh_private_
Definition: viz.h:27
std::string fixed_frame_
Definition: viz.h:43
ros::Publisher mag_pub_
Definition: viz.h:31
void attCallback(const rosflight_msgs::AttitudeConstPtr &msg)
Definition: viz.cpp:92
std::vector< geometry_msgs::Point > pts_list_
Definition: viz.h:40
int mag_throttle_
Definition: viz.h:42
double mag_sum_
Definition: viz.h:41
ros::Subscriber mag_sub_
Definition: viz.h:30


rosflight_utils
Author(s):
autogenerated on Wed Jul 3 2019 20:00:31