Class RtUsb9axisimuRosDriver

Class Documentation

class RtUsb9axisimuRosDriver

Public Types

enum ReadStatus

Values:

enumerator SUCCESS
enumerator NEED_TO_CONTINUE
enumerator FAILURE

Public Functions

explicit RtUsb9axisimuRosDriver(std::string serialport)
RtUsb9axisimuRosDriver(std::unique_ptr<rt_usb_9axisimu::SerialPort> serial_port)
~RtUsb9axisimuRosDriver()
void setImuFrameIdName(std::string frame_id)
void setImuPortName(std::string port)
void setImuStdDev(double linear_acceleration, double angular_velocity, double magnetic_field)
bool startCommunication()
void stopCommunication(void)
void checkDataFormat(const double timeout = 5.0)
bool hasAsciiDataFormat(void)
bool hasBinaryDataFormat(void)
bool hasRefreshedImuData(void)
std::unique_ptr<sensor_msgs::msg::Imu> getImuRawDataUniquePtr(const rclcpp::Time timestamp)
std::unique_ptr<sensor_msgs::msg::MagneticField> getImuMagUniquePtr(const rclcpp::Time timestamp)
std::unique_ptr<std_msgs::msg::Float64> getImuTemperatureUniquePtr(void)
ReadStatus readSensorData()