Skip to content

Commit

Permalink
Fixing the data_type of ROS Params exposure & gain
Browse files Browse the repository at this point in the history
  • Loading branch information
Arun-Prasad-V committed Nov 29, 2023
1 parent 8834e34 commit 6d7d777
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion realsense2_camera/src/ros_sensor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ void RosSensor::set_sensor_parameter_to_ros(rs2_option option)
{
std::string module_name = create_graph_resource_name(rs2_to_ros(get_info(RS2_CAMERA_INFO_NAME)));
const std::string option_name(module_name + "." + create_graph_resource_name(rs2_option_to_string(option)));
float value = get_option(option);
int value = get_option(option);
_params.getParameters()->setRosParamValue(option_name, &value);
}

Expand Down

0 comments on commit 6d7d777

Please sign in to comment.