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

Method setScale

rviz_imu_plugin/src/imu_acc_visual.cpp:149–158  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

147}
148
149void ImuAccVisual::setScale(float scale)
150{
151 scale_ = scale;
152 if (acc_vector_)
153 {
154 acc_vector_->setDirection(direction_);
155 acc_vector_->set(arrow_length_ * scale_, arrow_radius_ * scale_,
156 head_length_ * scale_, head_radius_ * scale_);
157 }
158}
159
160void ImuAccVisual::setColor(const QColor& color)
161{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected