Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ROSBridge Message Error for sensor_msgs/CameraInfo #205

Open
andreschreiber opened this issue Feb 3, 2024 · 2 comments
Open

ROSBridge Message Error for sensor_msgs/CameraInfo #205

andreschreiber opened this issue Feb 3, 2024 · 2 comments

Comments

@andreschreiber
Copy link

I'm running ROS Noetic and Ubuntu 20.04 on a machine running ROS Bridge, and when I try to receive sensor_msgs/CameraInfo data published from UE4, ROSBridge reports an error:
"publish: Message type sensor_msgs/CameraInfo does not have a field d"

@andreschreiber
Copy link
Author

Adding this in case anyone else has the issue.
It's due to _bson_append_camera_info having its names for D, K, P, and R being lower-case (they should be uppercase).
Adjusting the code (lines 61-64 on SensorMsgsCameraInfoConverter.h) to be:

_bson_append_double_tarray(b, "D", msg->D);
_bson_append_double_tarray(b, "K", msg->K);
_bson_append_double_tarray(b, "R", msg->R);
_bson_append_double_tarray(b, "P", msg->P);	

fixes the issue.

@tsender
Copy link
Contributor

tsender commented Feb 4, 2024

I apologize for causing this error. When I cleaned up the converters a while back, I must have overlooked those fields.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants