Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -441,6 +441,7 @@ namespace aerial_robot_estimation
}

inline uint8_t getUnhealthLevel() { return unhealth_level_; }
std::string getTFPrefix() {return tf_prefix_;}

const vector<boost::shared_ptr<sensor_plugin::SensorBase> >& getImuHandlers() const { return imu_handlers_;}
const vector<boost::shared_ptr<sensor_plugin::SensorBase> >& getAltHandlers() const { return alt_handlers_;}
Expand Down
1 change: 1 addition & 0 deletions aerial_robot_estimation/src/sensor/imu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -422,6 +422,7 @@ namespace sensor_plugin
{
sensor_msgs::Imu imu_data;
imu_data.header.stamp = imu_stamp_;
imu_data.header.frame_id = tf::resolve(estimator_->getTFPrefix(), robot_model_->getBaselinkName());
tf::Quaternion q;
raw_rot_.getRotation(q);
tf::quaternionTFToMsg(q, imu_data.orientation);
Expand Down