Skip to content

Commit

Permalink
PR #2655 from stwirth: Expose USB port in DeviceInfo service (ros2)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nir-Az authored Mar 14, 2023
2 parents 4073f15 + 7d77cb0 commit 78eb9ae
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions realsense2_camera/src/rs_node_setup.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -390,4 +390,5 @@ void BaseRealSenseNode::getDeviceInfo(const realsense2_camera_msgs::srv::DeviceI
}

res->sensors = sensors_names.str().substr(0, sensors_names.str().size()-1);
res->physical_port = _dev.supports(RS2_CAMERA_INFO_PHYSICAL_PORT) ? _dev.get_info(RS2_CAMERA_INFO_PHYSICAL_PORT) : "";
}
1 change: 1 addition & 0 deletions realsense2_camera_msgs/srv/DeviceInfo.srv
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ string firmware_version
string usb_type_descriptor
string firmware_update_id
string sensors
string physical_port

0 comments on commit 78eb9ae

Please sign in to comment.