Skip to content

Commit

Permalink
Merge pull request #172 from stereolabs/fix_atomic_init
Browse files Browse the repository at this point in the history
Fix mAiInstanceID atomix init
  • Loading branch information
Myzhar authored Aug 1, 2023
2 parents c0e8d6b + 9d454e7 commit 8cc2c68
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,7 @@ class ZedCamera : public rclcpp::Node
bool mGnss2BaseTransfValid = false;
bool mMap2UtmTransfValid = false;

std::atomic_uint16_t mAiInstanceID = 0;
std::atomic_uint16_t mAiInstanceID;
uint16_t mObjDetInstID;
uint16_t mBodyTrkInstID;
// <---- TF Transforms Flags
Expand Down
5 changes: 3 additions & 2 deletions zed_components/src/zed_camera/src/zed_camera_component.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ namespace stereolabs

ZedCamera::ZedCamera(const rclcpp::NodeOptions & options)
: Node("zed_node", options),
mDiagUpdater(this),
mVideoQos(1),
mDepthQos(1),
mSensQos(1),
Expand All @@ -72,7 +71,9 @@ ZedCamera::ZedCamera(const rclcpp::NodeOptions & options)
mObjDetQos(1),
mBodyTrkQos(1),
mClickedPtQos(1),
mGnssFixQos(1)
mGnssFixQos(1),
mAiInstanceID(0),
mDiagUpdater(this)
{
RCLCPP_INFO(get_logger(), "********************************");
RCLCPP_INFO(get_logger(), " ZED Camera Component ");
Expand Down

0 comments on commit 8cc2c68

Please sign in to comment.