Skip to content
This repository has been archived by the owner on Jan 7, 2023. It is now read-only.

Commit

Permalink
add PID and config file for realsense D455
Browse files Browse the repository at this point in the history
  • Loading branch information
syundo0730 committed Dec 8, 2020
1 parent df94e94 commit 0af02fd
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 1 deletion.
27 changes: 27 additions & 0 deletions realsense_examples/config/d455.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
/d435i:
camera:
ros__parameters:
serial_no: 026222250386 # d455
align_depth: false
enable_pointcloud: true
dense_pointcloud: true
color0:
enabled: true
resolution: [640,480]
fps: 30
depth0:
enabled: true
resolution: [640,480]
fps: 30
infra1:
enabled: true
resolution: [640,480]
fps: 30
infra2:
enabled: true
resolution: [640,480]
fps: 30
accel0:
enabled: true
gyro0:
enabled: true
1 change: 1 addition & 0 deletions realsense_ros/include/realsense/rs_constants.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ namespace realsense
const uint16_t RS415_PID = 0x0ad3; // ASRC
const uint16_t RS435_RGB_PID = 0x0b07; // AWGC
const uint16_t RS435i_RGB_PID = 0x0B3A; // AWGC_MM
const uint16_t RS455_RGB_PID = 0x0B5C; // D455
const uint16_t RS_T265_PID = 0x0b37; // T265
const uint16_t RS_USB2_PID = 0x0ad6; // USB2
using stream_index_pair = std::pair<rs2_stream, int>;
Expand Down
3 changes: 2 additions & 1 deletion realsense_ros/src/rs_factory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ void RealSenseNodeFactory::startDevice()
rs_node_ = std::make_unique<RealSenseD435>(ctx_, dev_, *this);
break;
case RS435i_RGB_PID:
case RS455_RGB_PID:
RCLCPP_INFO(this->get_logger(), "Create a node for D435i Camera");
rs_node_ = std::make_unique<RealSenseD435I>(ctx_, dev_, *this);
break;
Expand Down Expand Up @@ -152,4 +153,4 @@ void RealSenseNodeFactory::getDevice(rs2::device_list & list)
} // namespace realsense

#include "rclcpp_components/register_node_macro.hpp"
RCLCPP_COMPONENTS_REGISTER_NODE(realsense::RealSenseNodeFactory)
RCLCPP_COMPONENTS_REGISTER_NODE(realsense::RealSenseNodeFactory)

0 comments on commit 0af02fd

Please sign in to comment.