FLIR PTU driver crashes

asked 2015-05-01 07:54:43 -0500

215 gravatar image

updated 2015-05-02 05:52:53 -0500

Hi guys.. I am at moment using FLIR PTU driver and using it in velocity mode, such that I change the velocity and thereby able to position it.

but when I change the velocity from i.e. 0.6 to 0 as soon 0 is sent to it crashes with this error message:

terminate called after throwing an instance of 'boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::bad_lexical_cast> >'
  what():  bad lexical cast: source type value could not be interpreted as target

[ptu/ptu_driver-2] process has died [pid 18566, exit code -6, cmd /home/user/catkin_ws_PTU/devel/lib/flir_ptu_driver/ptu_node state:=/joint_states __name:=ptu_driver __log:=/home/user/.ros/log/9ab9d60e-efeb-11e4-9149-001fc67e59a2/ptu-ptu_driver-2.log].
log file: /home/user/.ros/log/9ab9d60e-efeb-11e4-9149-001fc67e59a2/ptu-ptu_driver-2*.log

I know it receives the message because it stops.. but after that i am not able to communicate with it..

edit retag flag offensive close merge delete



@215: would you please copy/paste such short error messages into your question instead of linking to a pasty site? If the link dies, this question (and any future answers) will become worthless.

gvdhoorn gravatar image gvdhoorn  ( 2015-05-02 05:18:55 -0500 )edit

It seems to crash because the driver receives empty string when i enter 0, and therefore just crashes since it cannot set the pan tilt speed from a empty string..

215 gravatar image 215  ( 2015-05-02 06:57:37 -0500 )edit

The issue must be in in the bool PTU::setSpeed when the PTU starts it has a initial velocity of 0.. Which it also accept without any problem, i can then change it to any speed without problem.. But when i change it to 0, it also goes to 0, but then it tries to it again.. it runs twice..

215 gravatar image 215  ( 2015-05-02 07:12:07 -0500 )edit

And because the second command doesn't contain any message it return false, because the buffer is empty and crashes.. So why does it receive 2 messages when "0" is entered

215 gravatar image 215  ( 2015-05-02 07:13:09 -0500 )edit

It only seem to be a problem i set the TILt.

215 gravatar image 215  ( 2015-05-02 07:25:06 -0500 )edit

The problem doesn't seem consistent.. Sometimes it is the pan other times its is the tilt.

215 gravatar image 215  ( 2015-05-10 08:23:42 -0500 )edit

I have the same issue here. After few minutes if left alone, or immediately if I send any command via the serial (e.g. echo "RT" >> /dev/ttyS0), the lexical cast is fired. The driver does not handle this, and if I try to not update speed or position when the exception is captured [...]

mark_vision gravatar image mark_vision  ( 2016-01-29 10:18:29 -0500 )edit

[...] the driver still sends random positions and screw up everything. I can't even leave the PTU fixed and get the tf. This is very annoying.

mark_vision gravatar image mark_vision  ( 2016-01-29 10:19:44 -0500 )edit