Skip to content

Commit

Permalink
Merge PR #2891 from Arun-Prasad-V: revert PR2872
Browse files Browse the repository at this point in the history
  • Loading branch information
SamerKhshiboun authored Oct 4, 2023
2 parents 6947e13 + d2549b1 commit 6305b1c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 0 additions & 3 deletions realsense2_camera/src/base_realsense_node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,6 @@ 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
4 changes: 4 additions & 0 deletions realsense2_camera/src/parameters.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ void BaseRealSenseNode::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);
_parameters_names.push_back(param_name);
Expand Down

0 comments on commit 6305b1c

Please sign in to comment.