Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

robotiq_ft_sensor: read symlink of sensor file descriptor #158

Open
wants to merge 1 commit into
base: kinetic-devel
Choose a base branch
from

Conversation

furushchev
Copy link

@furushchev furushchev commented Jul 4, 2019

The current node crushes if given serial_id points out symlink.
For example, if /dev/ttyUSB0 is symlinked to /dev/robotiq_ft_sensor by udev, the error shows up as followings:

$ rosrun robotiqt_sensor rq_sensor _serial_id:=rarm_robotiq_ft_sensor
[ INFO] [1562236271.820355094] [/robotiq_ft_sensor:ros.robotiq_ft_sensor]: Trying to connect to a sensor at /dev/rarm_robotiq_ft_sensor
*** buffer overflow detected ***: ~/catkin_ws/devel/lib/robotiq_ft_sensor/rq_sensor terminated
... a lot of core dumps ...

This PR fixes the error by reading symlinks before passing it to the part of sensor reading.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant