Skip to content

Commit

Permalink
Fix Foxy building
Browse files Browse the repository at this point in the history
  • Loading branch information
Myzhar committed Apr 29, 2024
1 parent 2e263cb commit 7adee58
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 7 deletions.
2 changes: 1 addition & 1 deletion zed-ros2-interfaces
2 changes: 1 addition & 1 deletion zed_components/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ if(ROS2_FOUND)
#message("* ROS2 ${FOUND_ROS2_DISTRO} is officially supported by this package.")
add_definitions(-DFOUND_HUMBLE)
else()
message("*** WARNING *** ROS2 ${FOUND_ROS2_DISTRO} is not officially supported by this package. Correct working is not guarantee.")
message("*** WARNING *** ROS2 ${FOUND_ROS2_DISTRO} is not officially supported by the package '${PROJECT_NAME}'. Correct operation is not guaranteed.")
endif()
else()
message("*** WARNING *** ROS2 distro is unknown. This package could not work correctly.")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ class ZedCamera : public rclcpp::Node
int mThreadPrioSens;
int mThreadPrioPointCloud;

std::atomic<bool> mStreamingServerRequired = false;
std::atomic<bool> mStreamingServerRequired;
sl::STREAMING_CODEC mStreamingServerCodec = sl::STREAMING_CODEC::H264;
int mStreamingServerPort = 30000;
int mStreamingServerBitrate = 12500;
Expand Down Expand Up @@ -719,7 +719,7 @@ class ZedCamera : public rclcpp::Node
std::atomic<bool> mClockAvailable; // Indicates if the "/clock" topic is
// published when `use_sim_time` is true

std::atomic<bool> mStreamingServerRunning = false;
std::atomic<bool> mStreamingServerRunning;
// <---- Status Flags

// ----> Positional Tracking
Expand Down
6 changes: 5 additions & 1 deletion zed_components/src/zed_camera/src/zed_camera_component.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,9 @@ ZedCamera::ZedCamera(const rclcpp::NodeOptions & options)
mLastTs_pose(TIMEZERO_ROS),
mLastTs_pc(TIMEZERO_ROS),
mPrevTs_pc(TIMEZERO_ROS),
mLastClock(TIMEZERO_ROS)
mLastClock(TIMEZERO_ROS),
mStreamingServerRequired(false),
mStreamingServerRunning(false)
{
RCLCPP_INFO(get_logger(), "********************************");
RCLCPP_INFO(get_logger(), " ZED Camera Component ");
Expand Down Expand Up @@ -127,10 +129,12 @@ ZedCamera::ZedCamera(const rclcpp::NodeOptions & options)
}

// ----> Publishers/Sbscribers options
#ifndef FOUND_FOXY
mPubOpt.qos_overriding_options =
rclcpp::QosOverridingOptions::with_default_policies();
mSubOpt.qos_overriding_options =
rclcpp::QosOverridingOptions::with_default_policies();
#endif
// <---- Publishers/Sbscribers options

// Parameters initialization
Expand Down
2 changes: 1 addition & 1 deletion zed_ros2/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ if(ROS2_FOUND)
#message("* ROS2 ${FOUND_ROS2_DISTRO} is officially supported by this package.")
add_definitions(-DFOUND_HUMBLE)
else()
message("*** WARNING *** ROS2 ${FOUND_ROS2_DISTRO} is not officially supported by this package. Correct working is not guarantee.")
message("*** WARNING *** ROS2 ${FOUND_ROS2_DISTRO} is not officially supported by the package '${PROJECT_NAME}'. Correct operation is not guaranteed.")
endif()
else()
message("*** WARNING *** ROS2 distro is unknown. This package could not work correctly.")
Expand Down
2 changes: 1 addition & 1 deletion zed_wrapper/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ if(ROS2_FOUND)
#message("* ROS2 ${FOUND_ROS2_DISTRO} is officially supported by this package.")
add_definitions(-DFOUND_HUMBLE)
else()
message("*** WARNING *** ROS2 ${FOUND_ROS2_DISTRO} is not officially supported by this package. Correct working is not guarantee.")
message("*** WARNING *** ROS2 ${FOUND_ROS2_DISTRO} is not officially supported by the package '${PROJECT_NAME}'. Correct operation is not guaranteed.")
endif()
else()
message("*** WARNING *** ROS2 distro is unknown. This package could not work correctly.")
Expand Down

0 comments on commit 7adee58

Please sign in to comment.