ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

I came across this error as well when trying to compile the vision_opencv package. The fix is on line 325 where it defines the 'dims' variable as a lont int.

long int dims[] = {mat.rows, mat.cols, mat.channels()};

Change that to an int so it reads

int dims[] = {mat.rows, mat.cols, mat.channels()};

and it should compile without issue.