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

Method updateDirection

rviz_imu_plugin/src/imu_acc_visual.cpp:133–147  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

131}
132
133void ImuAccVisual::updateDirection()
134{
135 direction_ = raw_acc_;
136 if (derotated_ && quat_valid_)
137 {
138 direction_ = orientation_ * direction_;
139 }
140
141 if (acc_vector_)
142 {
143 acc_vector_->setDirection(direction_);
144 acc_vector_->set(arrow_length_ * scale_, arrow_radius_ * scale_,
145 head_length_ * scale_, head_radius_ * scale_);
146 }
147}
148
149void ImuAccVisual::setScale(float scale)
150{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected