Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert 'Updating _camera_name with RS node's name' #2891

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading