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

Method onEnable

rviz_imu_plugin/src/imu_display.cpp:48–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46}
47
48void ImuDisplay::onEnable()
49{
50 MessageFilterDisplay<sensor_msgs::msg::Imu>::onEnable();
51
52 if (box_enabled_)
53 box_visual_->show();
54 else
55 box_visual_->hide();
56
57 if (axes_enabled_)
58 axes_visual_->show();
59 else
60 axes_visual_->hide();
61
62 if (acc_enabled_)
63 acc_visual_->show();
64 else
65 acc_visual_->hide();
66
67 scene_node_->setVisible(true);
68}
69
70void ImuDisplay::onDisable()
71{

Callers

nothing calls this directly

Calls 2

showMethod · 0.45
hideMethod · 0.45

Tested by

no test coverage detected