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

Method updateMag

rviz_imu_plugin/src/mag_display.cpp:93–104  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

91}
92
93void MagDisplay::updateMag()
94{
95 if (isEnabled())
96 mag_visual_->show();
97 else
98 mag_visual_->hide();
99
100 mag_visual_->setScale(mag_scale_property_->getFloat());
101 mag_visual_->setColor(mag_color_property_->getColor());
102 mag_visual_->setAlpha(mag_alpha_property_->getFloat());
103 mag_visual_->set2d(mag_2d_property_->getBool());
104}
105
106void MagDisplay::processMessage(
107 const sensor_msgs::msg::MagneticField::ConstSharedPtr msg)

Callers

nothing calls this directly

Calls 6

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

Tested by

no test coverage detected