Closed MFHuniovi closed 5 months ago
Hi,
are you able to ping the sensor? The UDP Port 0 should not cause a problem since it will simply select an port from the ephemeral range then and use that.
I already managed to get the data through the ROS system which publishes the same as I can get from the "data" in "sick::datastructure::Data data = safety_scanner->receive(timeout);".
How could I get more error information from the application or the device? I only get a flag from the GeneralSystemState indicating whether or not it is in error but I would like to be able to do more detailed diagnostics.
Hi, did you have a look at the ROS2 driver? This uses this class as a base. Maybe that helps in how to properly set it up. otherwise, all the information and the API are reflected in the Readme, you will find all services there. They can directly trigger the corresponding cola2 call to the sensor.
Closing due to inactivity
Hello. I am trying to create a diagnostic application for the sick nanoScan3 and I am following the communications example (missing "" and ; where ip are defined). The problem is that I never manage to make a connection/receive data, it always exits when calling the isDataAvaliable() method. My ip is 192.168.1.3 but I don't understand the udp_port = 0, I keep it as it was by default (although I imagine that the problem is here). This is my code: