ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
If you look in sensor_msgs/CameraInfo.h, you find the declaration of D:
typedef std::vector<double, typename ContainerAllocator::template rebind<double>::other > _D_type;
_D_type D;
It's a vector, so you will have to to a caminfo.D.push_back(...). (or resize the vector before writing into it).