Skip to content

Commit

Permalink
change paramter names to be inside the plugin instance's namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
Cakem1x committed Jan 24, 2024
1 parent 89dadfa commit 0d676a9
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions cvp_mesh_planner/src/cvp_mesh_planner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -139,17 +139,17 @@ bool CVPMeshPlanner::initialize(const std::string& plugin_name, const std::share
map_frame_ = mesh_map_->mapFrame();
node_ = node;

config_.publish_vector_field = node_->declare_parameter("publish_vector_field", config_.publish_vector_field);
config_.publish_face_vectors = node_->declare_parameter("publish_face_vectors", config_.publish_face_vectors);
config_.goal_dist_offset = node_->declare_parameter("goal_dist_offset", config_.goal_dist_offset);
config_.publish_vector_field = node_->declare_parameter(name_ + ".publish_vector_field", config_.publish_vector_field);
config_.publish_face_vectors = node_->declare_parameter(name_ + ".publish_face_vectors", config_.publish_face_vectors);
config_.goal_dist_offset = node_->declare_parameter(name_ + ".goal_dist_offset", config_.goal_dist_offset);
{ // cost limit param
rcl_interfaces::msg::ParameterDescriptor descriptor;
descriptor.description = "Defines the vertex cost limit with which it can be accessed.";
rcl_interfaces::msg::FloatingPointRange range;
range.from_value = 0.0;
range.to_value = 10.0;
descriptor.floating_point_range.push_back(range);
config_.cost_limit = node->declare_parameter("cost_limit", config_.cost_limit);
config_.cost_limit = node->declare_parameter(name_ + ".cost_limit", config_.cost_limit);
}
{ // step width param
rcl_interfaces::msg::ParameterDescriptor descriptor;
Expand All @@ -158,7 +158,7 @@ bool CVPMeshPlanner::initialize(const std::string& plugin_name, const std::share
range.from_value = 0.01;
range.to_value = 1.0;
descriptor.floating_point_range.push_back(range);
config_.step_width = node->declare_parameter("step_width", config_.step_width);
config_.step_width = node->declare_parameter(name_ + ".step_width", config_.step_width);
}

path_pub_ = node->create_publisher<nav_msgs::msg::Path>("~/path", rclcpp::QoS(1).transient_local());
Expand Down

0 comments on commit 0d676a9

Please sign in to comment.