orbbec / OrbbecSDK_ROS1

OrbbecSDK ROS wrapper
Apache License 2.0
50 stars 30 forks source link

Fix distortion factor in ROS CameraInfo #8

Closed swankun closed 1 year ago

swankun commented 1 year ago

According to the message definition for sensor_msgs/CameraInfo:

# The distortion parameters, size depending on the distortion model.
# For "plumb_bob", the 5 parameters are: (k1, k2, t1, t2, k3).
float64[] D

However, this package currently populates it as follows https://github.com/orbbec/OrbbecSDK_ROS1/blob/09325b1f6fbc533e19969c6eacd76420938b33d0/src/utils.cpp#L158-L162

This PR corrects the population of this portion of the message to be consistent with the message definition