#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) | |
Public Member Functions inherited from phidgets::Imu | |
Imu () | |
virtual | ~Imu () |
Public Member Functions inherited from phidgets::Phidget | |
int | close () |
std::string | getDeviceLabel () |
std::string | getDeviceName () |
int | getDeviceSerialNumber () |
std::string | getDeviceType () |
int | getDeviceVersion () |
std::string | getLibraryVersion () |
int | openAndWaitForAttachment (int serial_number, int timeout) |
Phidget () | |
virtual | ~Phidget () |
Private Types | |
typedef sensor_msgs::Imu | ImuMsg |
typedef sensor_msgs::MagneticField | MagMsg |
Private Member Functions | |
void | attachHandler () override |
void | calibrate () |
void | dataHandler (const double acceleration[3], const double angularRate[3], const double magneticField[3], double timestamp) override |
void | detachHandler () override |
void | errorHandler (int error) override |
void | initDevice () |
void | phidgetsDiagnostics (diagnostic_updater::DiagnosticStatusWrapper &stat) |
Main diagnostic method that takes care of collecting diagnostic data. More... | |
Private Attributes | |
double | angular_velocity_stdev_ |
ros::Publisher | cal_publisher_ |
ros::ServiceServer | cal_srv_ |
double | cc_gain0_ |
double | cc_gain1_ |
double | cc_gain2_ |
double | cc_mag_field_ |
double | cc_offset0_ |
double | cc_offset1_ |
double | cc_offset2_ |
double | cc_T0_ |
double | cc_T1_ |
double | cc_T2_ |
double | cc_T3_ |
double | cc_T4_ |
double | cc_T5_ |
diagnostic_updater::Updater | diag_updater_ |
updater object of class Update. Used to add diagnostic tasks, set ID etc. refer package API. Added for diagnostics More... | |
int | error_number_ |
std::string | frame_id_ |
ImuMsg | imu_msg_ |
ros::Publisher | imu_publisher_ |
std::shared_ptr< diagnostic_updater::TopicDiagnostic > | imu_publisher_diag_ptr_ |
bool | is_connected_ |
ros::Time | last_published_time_ |
double | linear_acceleration_stdev_ |
MagMsg | mag_msg_ |
ros::Publisher | mag_publisher_ |
double | magnetic_field_stdev_ |
ros::NodeHandle | nh_ |
ros::NodeHandle | nh_private_ |
int | period_ |
int | serial_number_ |
double | target_publish_freq_ |
ros::Time | time_zero_ |
bool | use_imu_time_ |
Additional Inherited Members | |
Static Public Member Functions inherited from phidgets::Phidget | |
static std::string | getErrorDescription (int errorCode) |
Protected Member Functions inherited from phidgets::Imu | |
int | setCompassCorrectionParameters (double cc_mag_field, double cc_offset0, double cc_offset1, double cc_offset2, double cc_gain0, double cc_gain1, double cc_gain2, double cc_T0, double cc_T1, double cc_T2, double cc_T3, double cc_T4, double cc_T5) |
void | setDataRate (int rate) |
void | zero () |
Protected Member Functions inherited from phidgets::Phidget | |
void | init (CPhidgetHandle handle) |
void | registerHandlers () |
Definition at line 22 of file imu_ros_i.h.
|
private |
Definition at line 24 of file imu_ros_i.h.
|
private |
Definition at line 25 of file imu_ros_i.h.
|
explicit |
Definition at line 5 of file imu_ros_i.cpp.
|
overrideprivatevirtual |
Reimplemented from phidgets::Phidget.
Definition at line 313 of file imu_ros_i.cpp.
|
private |
Definition at line 212 of file imu_ros_i.cpp.
bool phidgets::ImuRosI::calibrateService | ( | std_srvs::Empty::Request & | req, |
std_srvs::Empty::Response & | res | ||
) |
Definition at line 203 of file imu_ros_i.cpp.
|
overrideprivatevirtual |
Reimplemented from phidgets::Imu.
Definition at line 231 of file imu_ros_i.cpp.
|
overrideprivatevirtual |
Reimplemented from phidgets::Phidget.
Definition at line 329 of file imu_ros_i.cpp.
|
overrideprivatevirtual |
Reimplemented from phidgets::Phidget.
Definition at line 336 of file imu_ros_i.cpp.
|
private |
Definition at line 175 of file imu_ros_i.cpp.
|
private |
Main diagnostic method that takes care of collecting diagnostic data.
stat | The stat param is what is the diagnostic tasks are added two. Internally published by the diagnostic_updater package. Added for diagnostics |
Definition at line 343 of file imu_ros_i.cpp.
|
private |
Definition at line 65 of file imu_ros_i.h.
|
private |
Definition at line 38 of file imu_ros_i.h.
|
private |
Definition at line 39 of file imu_ros_i.h.
|
private |
Definition at line 76 of file imu_ros_i.h.
|
private |
Definition at line 77 of file imu_ros_i.h.
|
private |
Definition at line 78 of file imu_ros_i.h.
|
private |
Definition at line 72 of file imu_ros_i.h.
|
private |
Definition at line 73 of file imu_ros_i.h.
|
private |
Definition at line 74 of file imu_ros_i.h.
|
private |
Definition at line 75 of file imu_ros_i.h.
|
private |
Definition at line 79 of file imu_ros_i.h.
|
private |
Definition at line 80 of file imu_ros_i.h.
|
private |
Definition at line 81 of file imu_ros_i.h.
|
private |
Definition at line 82 of file imu_ros_i.h.
|
private |
Definition at line 83 of file imu_ros_i.h.
|
private |
Definition at line 84 of file imu_ros_i.h.
|
private |
updater object of class Update. Used to add diagnostic tasks, set ID etc. refer package API. Added for diagnostics
Definition at line 43 of file imu_ros_i.h.
|
private |
Definition at line 49 of file imu_ros_i.h.
|
private |
Definition at line 62 of file imu_ros_i.h.
|
private |
Definition at line 55 of file imu_ros_i.h.
|
private |
Definition at line 36 of file imu_ros_i.h.
|
private |
Definition at line 45 of file imu_ros_i.h.
|
private |
Definition at line 48 of file imu_ros_i.h.
|
private |
Definition at line 52 of file imu_ros_i.h.
|
private |
Definition at line 66 of file imu_ros_i.h.
|
private |
Definition at line 56 of file imu_ros_i.h.
|
private |
Definition at line 37 of file imu_ros_i.h.
|
private |
Definition at line 67 of file imu_ros_i.h.
|
private |
Definition at line 34 of file imu_ros_i.h.
|
private |
Definition at line 35 of file imu_ros_i.h.
|
private |
Definition at line 63 of file imu_ros_i.h.
|
private |
Definition at line 53 of file imu_ros_i.h.
|
private |
Definition at line 50 of file imu_ros_i.h.
|
private |
Definition at line 58 of file imu_ros_i.h.
|
private |
Definition at line 68 of file imu_ros_i.h.