Skip to content

Commit

Permalink
Fixed nodelet initialization.
Browse files Browse the repository at this point in the history
  • Loading branch information
peci1 committed Dec 12, 2024
1 parent 2ab0fdb commit faeed7c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,8 @@ MagnetometerCompassNodelet::~MagnetometerCompassNodelet() = default;

void MagnetometerCompassNodelet::onInit()
{
cras::Nodelet::onInit();

auto nh = this->getNodeHandle();
auto pnh = this->getPrivateNodeHandle();

Expand Down
2 changes: 2 additions & 0 deletions magnetometer_compass/nodelets/visualize_azimuth_nodelet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,8 @@ class VisualizeAzimuthNodelet : public cras::Nodelet

void VisualizeAzimuthNodelet::onInit()
{
cras::Nodelet::onInit();

auto nh = this->getNodeHandle();
auto pnh = this->getPrivateNodeHandle();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ MagnetometerBiasRemoverNodelet::~MagnetometerBiasRemoverNodelet() = default;

void MagnetometerBiasRemoverNodelet::onInit()
{
cras::Nodelet::onInit();

auto nh = this->getNodeHandle();
auto topicNh = ros::NodeHandle(nh, "imu");
auto params = this->privateParams();
Expand Down

0 comments on commit faeed7c

Please sign in to comment.