MCPcopy Create free account
hub / github.com/Robotics-STAR-Lab/RACER / imu_callback

Method imu_callback

uav_simulator/so3_control/src/so3_control_nodelet.cpp:139–143  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

137}
138
139void SO3ControlNodelet::imu_callback(const sensor_msgs::Imu& imu) {
140 const Eigen::Vector3d acc(imu.linear_acceleration.x, imu.linear_acceleration.y,
141 imu.linear_acceleration.z);
142 controller_.setAcc(acc);
143}
144
145void SO3ControlNodelet::onInit(void) {
146 ros::NodeHandle n(getPrivateNodeHandle());

Callers

nothing calls this directly

Calls 1

setAccMethod · 0.80

Tested by

no test coverage detected