Skip to content

Commit

Permalink
Fix Dynamic parameters initialization bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Myzhar committed Jul 29, 2024
1 parent 5f62b7b commit 3af19a2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
CHANGELOG
=========

07-29-2024
----------
- Fix wrong dynamic parameters initialization

05-04-2024
----------
- Fix compatibility with ZED SDK v4.1
Expand Down
10 changes: 6 additions & 4 deletions zed_nodelets/src/zed_nodelet/src/zed_wrapper_nodelet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1191,6 +1191,8 @@ void ZEDWrapperNodelet::readSvoParams()

void ZEDWrapperNodelet::readDynParams()
{
std::cerr << "Ci sei o no?" << std::endl << std::flush;

NODELET_INFO_STREAM("*** DYNAMIC PARAMETERS (Init. values) ***");

mNhNs.getParam("brightness", mCamBrightness);
Expand Down Expand Up @@ -1255,6 +1257,10 @@ void ZEDWrapperNodelet::readParameters()
readGeneralParams();
// <---- General

// ----> Dynamic
readDynParams();
// <---- Dynamic

// ----> Video
// NODELET_INFO_STREAM("*** VIDEO PARAMETERS ***");
// Note: there are no "static" video parameters
Expand All @@ -1264,10 +1270,6 @@ void ZEDWrapperNodelet::readParameters()
readDepthParams();
// <----- Depth

// ----> Dynamic
void readDynParams();
// <---- Dynamic

// ----> Positional Tracking
readPosTrkParams();
// <---- Positional Tracking
Expand Down

0 comments on commit 3af19a2

Please sign in to comment.