MCPcopy Create free account
hub / github.com/CCNYRoboticsLab/imu_tools / updateAcc

Method updateAcc

rviz_imu_plugin/src/imu_display.cpp:155–167  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

153}
154
155void ImuDisplay::updateAcc()
156{
157 acc_enabled_ = acc_enabled_property_->getBool();
158 if (isEnabled() && acc_enabled_)
159 acc_visual_->show();
160 else
161 acc_visual_->hide();
162
163 acc_visual_->setScale(acc_scale_property_->getFloat());
164 acc_visual_->setColor(acc_color_property_->getColor());
165 acc_visual_->setAlpha(acc_alpha_property_->getFloat());
166 acc_visual_->setDerotated(acc_derotated_property_->getBool());
167}
168
169void ImuDisplay::processMessage(const sensor_msgs::msg::Imu::ConstSharedPtr msg)
170{

Callers

nothing calls this directly

Calls 6

setDerotatedMethod · 0.80
showMethod · 0.45
hideMethod · 0.45
setScaleMethod · 0.45
setColorMethod · 0.45
setAlphaMethod · 0.45

Tested by

no test coverage detected