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

Method setScale

rviz_imu_plugin/src/mag_visual.cpp:117–126  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

115}
116
117void MagVisual::setScale(float scale)
118{
119 scale_ = scale;
120 if (heading_vector_)
121 {
122 heading_vector_->setDirection(direction_);
123 heading_vector_->set(arrow_length_ * scale_, arrow_radius_ * scale_,
124 head_length_ * scale_, head_radius_ * scale_);
125 }
126}
127
128void MagVisual::setColor(const QColor& color)
129{

Callers 7

showMethod · 0.45
setScaleXMethod · 0.45
setScaleYMethod · 0.45
setScaleZMethod · 0.45
updateAxesMethod · 0.45
updateAccMethod · 0.45
updateMagMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected