Skip to content

Commit 0974e76

Browse files
Merge pull request #208 from FS-Online/fix-204
Fix #204
2 parents 5e091d7 + f6a9937 commit 0974e76

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ros/src/fsds_ros_bridge/src/fsds_ros_bridge_camera.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ void doImageUpdate(const ros::TimerEvent&)
7575
img_msg->data = img_response.image_data_uint8;
7676
img_msg->height = img_response.height;
7777
img_msg->width = img_response.width;
78-
img_msg->step = img_response.width * 8; // image_width * num_bytes
78+
img_msg->step = img_response.width * 3; // image_width * num_bytes
7979
img_msg->encoding = "bgr8";
8080
img_msg->is_bigendian = 0;
8181
img_msg->header.stamp = make_ts(img_response.time_stamp);

0 commit comments

Comments
 (0)