| 71 | } |
| 72 | |
| 73 | void ImuOrientationVisual::show() |
| 74 | { |
| 75 | if (!orientation_box_) |
| 76 | { |
| 77 | orientation_box_ = new rviz_rendering::Shape( |
| 78 | rviz_rendering::Shape::Cube, scene_manager_, frame_node_); |
| 79 | orientation_box_->setColor(color_.redF(), color_.greenF(), |
| 80 | color_.blueF(), alpha_); |
| 81 | orientation_box_->setScale(Ogre::Vector3(scale_x_, scale_y_, scale_z_)); |
| 82 | orientation_box_->setOrientation(orientation_); |
| 83 | } |
| 84 | } |
| 85 | |
| 86 | void ImuOrientationVisual::hide() |
| 87 | { |
nothing calls this directly
no test coverage detected