Class AdiImuBufRos2
Defined in File adi_imu_buf_ros2.hpp
Class Documentation
-
class AdiImuBufRos2
Class for ADI IMU + ADRD2121.
Public Functions
Constructor for AdiImuBufRos2.
-
~AdiImuBufRos2()
Destructor for AdiImuBufRos2.
-
void initParams(void)
Loads ROS-related, ADI IMU (AdiImuRos2), and ADRD2121 (ImuBufRos2) parameters.
-
bool init(void)
Initializes the hardware Initializes the (1) communication with the board (i.e via USB), (2) ADRD2121, ADI IMU, and (4) advertises ROS Publishers and Service Servers.
-
bool config(void)
Configures the hardware based on the loaded parameters Configure the (1) ADRD2121, and (2) ADI IMU Also, sets the appropriate ROS Loop rate.
- Returns:
Boolean if successful (true) or not (false)
Service Server callback for imu_glob_cmd_service_.
- Parameters:
req, res – Request and Response to the Service
- Returns:
Boolean if successful (true) or not (false)