kuka-isir / ati_sensor

C++ Libraries to communicate with the ATI NET F/T box.
Other
10 stars 8 forks source link

sample count is not transmitted correctly #4

Closed guihomework closed 9 years ago

guihomework commented 9 years ago

After 6 hours, I finally found why my "infinite" transmissions would stop after a random number of samples. I went onto lot of possible settings on the udp settings / system buffers / printouts / etc... but printing network flipped data not being easy, I missed the culprit for a long time.

This line https://github.com/kuka-isir/ati_sensor/blob/master/src/ft_sensor.cpp#L298 does a wrong casting. It then sets the sample number to some random memory value.

Funnily it was correct here https://github.com/ghamon88/ATISensor/blob/master/src/ATISensor-component.cpp#L41 and here https://github.com/CentroEPiaggio/force-torque-sensor/blob/master/src/FTSensor.cpp#L117 but also probably wrong there https://github.com/ros-drivers/ati_netft_ros_driver/blob/indigo-devel/netft_rdt_driver/src/netft_rdt_driver.cpp#L123 2 out of 4 drivers have issues at the same place.

I will provide a PR for that immediately