File tree Expand file tree Collapse file tree 3 files changed +2
-6
lines changed
Expand file tree Collapse file tree 3 files changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,6 @@ ament_target_dependencies(greenwave_monitor
3636 std_msgs
3737 diagnostic_msgs
3838 greenwave_monitor_interfaces
39- ament_index_cpp
4039 yaml_cpp_vendor
4140)
4241target_link_libraries (greenwave_monitor
Original file line number Diff line number Diff line change 3737 <depend >sensor_msgs</depend >
3838 <depend >greenwave_monitor_interfaces</depend >
3939 <depend >rclpy</depend >
40- <depend >ament_index_cpp</depend >
4140 <depend >yaml_cpp_vendor</depend >
4241
4342 <exec_depend >launch</exec_depend >
Original file line number Diff line number Diff line change 2020#include < algorithm>
2121#include < cstring>
2222#include < mutex>
23- #include < unordered_map>
2423#include < sys/stat.h>
24+ #include < unordered_map>
2525#include < yaml-cpp/yaml.h>
2626
27- #include " ament_index_cpp/get_package_share_directory.hpp"
2827#include " rosidl_typesupport_introspection_cpp/message_introspection.hpp"
2928
3029using namespace std ::chrono_literals;
@@ -50,8 +49,7 @@ GreenwaveMonitor::GreenwaveMonitor(const rclcpp::NodeOptions & options)
5049 auto topics = this ->get_parameter (" topics" ).as_string_array ();
5150
5251 // Declare and get the type registry path parameter
53- std::string default_type_registry_path = ament_index_cpp::get_package_share_directory (" greenwave_monitor" ) + " /config/type_registry.yml" ;
54- this ->declare_parameter <std::string>(" type_registry_path" , default_type_registry_path);
52+ this ->declare_parameter <std::string>(" type_registry_path" , " " );
5553 type_registry_path_ = this ->get_parameter (" type_registry_path" ).as_string ();
5654
5755 // Check if the type registry path is valid
You can’t perform that action at this time.
0 commit comments