KumarRobotics / motion_capture_system

Drivers for motion capture systems (Vicon and Qualisys, can be extended to compatible with other mocap systems)
Apache License 2.0
66 stars 47 forks source link

Compilation Error with Qualysis Driver #13

Closed jsvacha closed 6 years ago

jsvacha commented 6 years ago

I updated from Ubuntu 16.04 to 18.04. Since my compiler is now gcc version 7.3.0, this error appears:

/home/james/Programming/ROS/main_ws/src/motion_capture_system/mocap_qualisys/include/mocap_qualisys/RTProtocol.cpp: In member function ‘bool CRTProtocol::GetState(CRTPacket::EEvent&, bool)’:
/home/james/Programming/ROS/main_ws/src/motion_capture_system/mocap_qualisys/include/mocap_qualisys/RTProtocol.cpp:458:54: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
                 if (ReceiveRTPacket(eType, false) == false)
                                                      ^~~~~

Apparently you can't compare pointers to integers.

jsvacha commented 6 years ago

Fixed.