FLIR 46-70 connectivity error. [closed]

asked 2015-03-03 06:56:44 -0600

kokirits gravatar image

updated 2015-03-04 06:17:28 -0600

Hello all,

I recently got a Flir 46-70 PTU and I'm having quite a trouble with it. I cloned the repo from here and catkin_make without a problem.

When I try to launch the launch file provided I get the error below:

SUMMARY

========

PARAMETERS
 * /ptu/ptu_driver/port
 * /robot_description
 * /rosdistro
 * /rosversion

NODES
/ptu/
ptu_driver (flir_ptu_driver/ptu_node)
/
robot_state_publisher (robot_state_publisher/state_publisher)

ROS_MASTER_URI=http://localhost:11311

core service [/rosout] found
process[robot_state_publisher-1]: started with pid [7149]
process[ptu/ptu_driver-2]: started with pid [7167]
[ERROR] [1425387124.460309023]: Error getting pan-tilt res
[ERROR] [1425387124.659990747]: Error getting pan-tilt res
[ERROR] [1425387124.859565033]: Error getting pan-tilt limit
[ERROR] [1425387125.059095784]: Error getting pan-tilt limit
[ERROR] [1425387125.258611371]: Error getting pan-tilt limit
[ERROR] [1425387125.458126748]: Error getting pan-tilt limit
[ERROR] [1425387125.657645543]: Error getting pan-tilt limit
[ERROR] [1425387125.857199271]: Error getting pan-tilt limit
[ERROR] [1425387126.056751256]: Error getting pan-tilt limit
[ERROR] [1425387126.256248366]: Error getting pan-tilt limit
[ERROR] [1425387126.256400471]: Could not initialize FLIR PTU on /dev/ttyUSB0

My launch file is:

<launch>
<arg name="port" default="/dev/ttyUSB0" />

<!-- When you integrate into your platform, use the provided xacro macro to include
   the D46 URDF with your larger platform description, and have your platform's
   joint_state_publisher subscribe to the ptu state. -->
<param name="robot_description" textfile="$(find flir_ptu_description)/urdf/example.urdf" /> 
<node name="robot_state_publisher" pkg="robot_state_publisher" type="state_publisher" />

<node name="ptu_driver" pkg="flir_ptu_driver" type="ptu_node" ns="ptu">
<!-- <param name="port" value="$(arg port)" /> -->
<param name="port" value="/dev/ttyUSB0" />
<remap from="state" to="/joint_states" />
</node>
</launch>

Finally my setup is ROS hydro, with ubuntu 12.04. I realize that there is a question in : http://answers.ros.org/question/20294... but the answers doesn't seem to help me.

Edit 1) I'm starting to suspect a faulty serial to usb converter.

edit retag flag offensive reopen merge delete

Closed for the following reason question is not relevant or outdated by tfoote
close date 2018-01-11 19:59:40.063435

Comments

You can check the port using $ dmesg | grep tty

It seems like it has connected at the begining, since it tries to get the pan/tilt res and so on.

215 gravatar image215 ( 2015-03-04 06:35:39 -0600 )edit

I have the same problem and I want to know if you have got a solution for that.

Abdellah gravatar imageAbdellah ( 2015-08-10 07:30:09 -0600 )edit

Not for hydro, but after a clean install of Indigo it worked like a charm.

kokirits gravatar imagekokirits ( 2015-08-10 10:33:52 -0600 )edit

Did you solve your issue?

alexandru.lesi gravatar imagealexandru.lesi ( 2017-05-15 04:36:58 -0600 )edit