Skip to content

Commit

Permalink
Merge PR #2872 from Arun-Prasad-V: Updating _camera_name with RS node…
Browse files Browse the repository at this point in the history
…'s name
  • Loading branch information
SamerKhshiboun authored Sep 27, 2023
2 parents 6f87960 + 1cd8f27 commit 5c1aaaa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 3 additions & 0 deletions realsense2_camera/src/base_realsense_node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,9 @@ BaseRealSenseNode::BaseRealSenseNode(rclcpp::Node& node,
ROS_INFO("Intra-Process communication enabled");
}

// Get node name
_camera_name = _node.get_name();

initializeFormatsMaps();
_monitor_options = {RS2_OPTION_ASIC_TEMPERATURE, RS2_OPTION_PROJECTOR_TEMPERATURE};
}
Expand Down
3 changes: 0 additions & 3 deletions realsense2_camera/src/parameters.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,6 @@ void BaseRealSenseNode::getParameters()
ROS_INFO("getParameters...");

std::string param_name;
param_name = std::string("camera_name");
_camera_name = _parameters->setParam<std::string>(param_name, "camera");
_parameters_names.push_back(param_name);

param_name = std::string("publish_tf");
_publish_tf = _parameters->setParam<bool>(param_name, PUBLISH_TF);
Expand Down

0 comments on commit 5c1aaaa

Please sign in to comment.