Skip to content

Commit 9e46244

Browse files
committed
set default registry file path to none
Signed-off-by: Mohamed Abdelaziz <[email protected]>
1 parent 19bea93 commit 9e46244

File tree

3 files changed

+2
-6
lines changed

3 files changed

+2
-6
lines changed

greenwave_monitor/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff 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
)
4241
target_link_libraries(greenwave_monitor

greenwave_monitor/package.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@
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>

greenwave_monitor/src/greenwave_monitor.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,10 @@
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

3029
using 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

0 commit comments

Comments
 (0)