#include <imu_ros_i.h>
Public Member Functions | |
bool | calibrateService (std_srvs::Empty::Request &req, std_srvs::Empty::Response &res) |
ImuRosI (ros::NodeHandle nh, ros::NodeHandle nh_private) | |
Private Types | |
typedef sensor_msgs::Imu | ImuMsg |
typedef geometry_msgs::Vector3Stamped | MagMsg |
Private Member Functions | |
void | calibrate () |
void | dataHandler (CPhidgetSpatial_SpatialEventDataHandle *data, int count) |
void | initDevice () |
void | processImuData (CPhidgetSpatial_SpatialEventDataHandle *data, int i) |
Private Attributes | |
double | angular_velocity_stdev_ |
ros::Publisher | cal_publisher_ |
ros::ServiceServer | cal_srv_ |
std::string | frame_id_ |
ImuMsg | imu_msg_ |
ros::Publisher | imu_publisher_ |
bool | initialized_ |
ros::Time | last_imu_time_ |
double | linear_acceleration_stdev_ |
ros::Publisher | mag_publisher_ |
boost::mutex | mutex_ |
ros::NodeHandle | nh_ |
ros::NodeHandle | nh_private_ |
int | period_ |
ros::Time | time_zero_ |
Definition at line 18 of file imu_ros_i.h.
typedef sensor_msgs::Imu phidgets::ImuRosI::ImuMsg [private] |
Definition at line 20 of file imu_ros_i.h.
typedef geometry_msgs::Vector3Stamped phidgets::ImuRosI::MagMsg [private] |
Definition at line 21 of file imu_ros_i.h.
phidgets::ImuRosI::ImuRosI | ( | ros::NodeHandle | nh, |
ros::NodeHandle | nh_private | ||
) |
Definition at line 5 of file imu_ros_i.cpp.
void phidgets::ImuRosI::calibrate | ( | ) | [private] |
Definition at line 95 of file imu_ros_i.cpp.
bool phidgets::ImuRosI::calibrateService | ( | std_srvs::Empty::Request & | req, |
std_srvs::Empty::Response & | res | ||
) |
Definition at line 88 of file imu_ros_i.cpp.
void phidgets::ImuRosI::dataHandler | ( | CPhidgetSpatial_SpatialEventDataHandle * | data, |
int | count | ||
) | [private, virtual] |
Reimplemented from phidgets::Imu.
Definition at line 177 of file imu_ros_i.cpp.
void phidgets::ImuRosI::initDevice | ( | ) | [private] |
Definition at line 67 of file imu_ros_i.cpp.
void phidgets::ImuRosI::processImuData | ( | CPhidgetSpatial_SpatialEventDataHandle * | data, |
int | i | ||
) | [private] |
Definition at line 109 of file imu_ros_i.cpp.
double phidgets::ImuRosI::angular_velocity_stdev_ [private] |
Definition at line 52 of file imu_ros_i.h.
Definition at line 36 of file imu_ros_i.h.
Definition at line 37 of file imu_ros_i.h.
std::string phidgets::ImuRosI::frame_id_ [private] |
Definition at line 49 of file imu_ros_i.h.
ImuMsg phidgets::ImuRosI::imu_msg_ [private] |
Definition at line 43 of file imu_ros_i.h.
Definition at line 34 of file imu_ros_i.h.
bool phidgets::ImuRosI::initialized_ [private] |
Definition at line 39 of file imu_ros_i.h.
ros::Time phidgets::ImuRosI::last_imu_time_ [private] |
Definition at line 41 of file imu_ros_i.h.
double phidgets::ImuRosI::linear_acceleration_stdev_ [private] |
Definition at line 53 of file imu_ros_i.h.
Definition at line 35 of file imu_ros_i.h.
boost::mutex phidgets::ImuRosI::mutex_ [private] |
Definition at line 40 of file imu_ros_i.h.
ros::NodeHandle phidgets::ImuRosI::nh_ [private] |
Definition at line 32 of file imu_ros_i.h.
Definition at line 33 of file imu_ros_i.h.
int phidgets::ImuRosI::period_ [private] |
Definition at line 50 of file imu_ros_i.h.
ros::Time phidgets::ImuRosI::time_zero_ [private] |
Definition at line 45 of file imu_ros_i.h.