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

Method onInitialize

rviz_imu_plugin/src/imu_display.cpp:81–99  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

79}
80
81void ImuDisplay::onInitialize()
82{
83 MFDClass::onInitialize();
84
85 // Make an Ogre::SceneNode to contain all our visuals.
86 scene_node_ = scene_manager_->getRootSceneNode()->createChildSceneNode();
87
88 // create orientation box visual
89 box_visual_ =
90 new ImuOrientationVisual(context_->getSceneManager(), scene_node_);
91
92 // create orientation axes visual
93 axes_visual_ = new ImuAxesVisual(context_->getSceneManager(), scene_node_);
94
95 // create acceleration vector visual
96 acc_visual_ = new ImuAccVisual(context_->getSceneManager(), scene_node_);
97
98 scene_node_->setVisible(isEnabled());
99}
100
101ImuDisplay::~ImuDisplay() = default;
102

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected