| 74 | } |
| 75 | |
| 76 | void ImuAccVisual::show() |
| 77 | { |
| 78 | if (!acc_vector_) |
| 79 | { |
| 80 | acc_vector_ = new rviz_rendering::Arrow(scene_manager_, frame_node_); |
| 81 | acc_vector_->setColor(color_.redF(), color_.greenF(), color_.blueF(), |
| 82 | alpha_); |
| 83 | acc_vector_->setDirection(direction_); |
| 84 | acc_vector_->set(arrow_length_ * scale_, arrow_radius_ * scale_, |
| 85 | head_length_ * scale_, head_radius_ * scale_); |
| 86 | } |
| 87 | } |
| 88 | |
| 89 | void ImuAccVisual::hide() |
| 90 | { |