Skip to content

Commit 6951afd

Browse files
committed
Remove default values of declare_parameter from map_loader
Signed-off-by: anhnv3991 <anh.nguyen.2@tier4.jp>
1 parent ea09bb9 commit 6951afd

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

map/map_loader/src/lanelet2_map_loader/lanelet2_map_loader_node.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@ Lanelet2MapLoaderNode::Lanelet2MapLoaderNode(const rclcpp::NodeOptions & options
6161
sub_map_projector_info_,
6262
[this](const MapProjectorInfo::Message::ConstSharedPtr msg) { on_map_projector_info(msg); });
6363

64-
declare_parameter("lanelet2_map_path", "");
65-
declare_parameter("center_line_resolution", 5.0);
64+
declare_parameter<std::string>("lanelet2_map_path");
65+
declare_parameter<double>("center_line_resolution");
6666
}
6767

6868
void Lanelet2MapLoaderNode::on_map_projector_info(

map/map_loader/src/lanelet2_map_loader/lanelet2_map_visualization_node.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ Lanelet2MapVisualizationNode::Lanelet2MapVisualizationNode(const rclcpp::NodeOpt
7171
{
7272
using std::placeholders::_1;
7373

74-
viz_lanelets_centerline_ = this->declare_parameter("viz_lanelets_centerline", true);
74+
viz_lanelets_centerline_ = true;
7575

7676
sub_map_bin_ = this->create_subscription<autoware_auto_mapping_msgs::msg::HADMapBin>(
7777
"input/lanelet2_map", rclcpp::QoS{1}.transient_local(),

0 commit comments

Comments
 (0)