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

Commit 3911e29

Browse files
committed
add PID and config file for realsense D455
1 parent df94e94 commit 3911e29

File tree

3 files changed

+30
-1
lines changed

3 files changed

+30
-1
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
/d435i:
2+
camera:
3+
ros__parameters:
4+
serial_no: 026222250386 # d455
5+
align_depth: false
6+
enable_pointcloud: true
7+
dense_pointcloud: true
8+
color0:
9+
enabled: true
10+
resolution: [640,480]
11+
fps: 30
12+
depth0:
13+
enabled: true
14+
resolution: [640,480]
15+
fps: 30
16+
infra1:
17+
enabled: true
18+
resolution: [640,480]
19+
fps: 30
20+
infra2:
21+
enabled: true
22+
resolution: [640,480]
23+
fps: 30
24+
accel0:
25+
enabled: true
26+
gyro0:
27+
enabled: true

realsense_ros/include/realsense/rs_constants.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ namespace realsense
2222
const uint16_t RS415_PID = 0x0ad3; // ASRC
2323
const uint16_t RS435_RGB_PID = 0x0b07; // AWGC
2424
const uint16_t RS435i_RGB_PID = 0x0B3A; // AWGC_MM
25+
const uint16_t RS455_RGB_PID = 0x0B5C; // D455
2526
const uint16_t RS_T265_PID = 0x0b37; // T265
2627
const uint16_t RS_USB2_PID = 0x0ad6; // USB2
2728
using stream_index_pair = std::pair<rs2_stream, int>;

realsense_ros/src/rs_factory.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ void RealSenseNodeFactory::startDevice()
8585
rs_node_ = std::make_unique<RealSenseD435>(ctx_, dev_, *this);
8686
break;
8787
case RS435i_RGB_PID:
88+
case RS455_RGB_PID:
8889
RCLCPP_INFO(this->get_logger(), "Create a node for D435i Camera");
8990
rs_node_ = std::make_unique<RealSenseD435I>(ctx_, dev_, *this);
9091
break;
@@ -152,4 +153,4 @@ void RealSenseNodeFactory::getDevice(rs2::device_list & list)
152153
} // namespace realsense
153154

154155
#include "rclcpp_components/register_node_macro.hpp"
155-
RCLCPP_COMPONENTS_REGISTER_NODE(realsense::RealSenseNodeFactory)
156+
RCLCPP_COMPONENTS_REGISTER_NODE(realsense::RealSenseNodeFactory)

0 commit comments

Comments
 (0)