ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

FLIR PTU initialization error

asked 2017-05-15 05:17:59 -0600

alexandru.lesi gravatar image

Hi,

I'm trying to get a FLIR pan and tilt unit (PTU) to run. I've cloned the following repo's:

https://github.com/wjwwood/serial.git
https://github.com/ros-drivers/flir_ptu.git

My username has been added to the dialup group. I've checked that the device is on and connected (dmesg | grep tty). I made sure the baud rate is correct. I tried launching it with the delivered launch file:

roslaunch flir_ptu_driver ptu.launch

But unfortunately I get:

SUMMARY
========

PARAMETERS
 * /ptu/ptu_driver/port: /dev/ttyUSB0
 * /robot_description: <?xml version="1....
 * /rosdistro: indigo
 * /rosversion: 1.11.21

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

auto-starting new master
process[master]: started with pid [21768]
ROS_MASTER_URI=http://localhost:11311

setting /run_id to 6da03ef4-3956-11e7-be4f-8c89a57cea6f
process[rosout-1]: started with pid [21781]
started core service [/rosout]
process[robot_state_publisher-2]: started with pid [21785]
process[ptu/ptu_driver-3]: started with pid [21798]
[ERROR] [1494842903.849068048]: Error getting pan-tilt res
[ERROR] [1494842904.052991450]: Error getting pan-tilt res
[ERROR] [1494842904.257020561]: Error getting pan-tilt limit
[ERROR] [1494842904.460998246]: Error getting pan-tilt limit
[ERROR] [1494842904.664990558]: Error getting pan-tilt limit
[ERROR] [1494842904.868993172]: Error getting pan-tilt limit
[ERROR] [1494842905.072993043]: Error getting pan-tilt limit
[ERROR] [1494842905.276940833]: Error getting pan-tilt limit
[ERROR] [1494842905.480866315]: Error getting pan-tilt limit
[ERROR] [1494842905.684846684]: Error getting pan-tilt limit
[ERROR] [1494842905.684931517]: Could not initialize FLIR PTU on /dev/ttyUSB0

I can't figure out what else I could try from here to get it to run. Has anyone got any suggestions or has anyone had the same issue?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2017-05-15 11:31:08 -0600

The /dev/ttyUSB0 port belongs to the group dialout so you need to add the user to that group as follows:

sudo adduser $USER dialout
edit flag offensive delete link more

Comments

Like I mentioned in my description my username has already been added to the dialup group

alexandru.lesi gravatar image alexandru.lesi  ( 2017-05-15 14:02:41 -0600 )edit

Just making sure: you have logged out and logged in after adding yourself to the group? What is the output of ls -al /dev/ttyUSB0 and groups?

gvdhoorn gravatar image gvdhoorn  ( 2017-05-15 14:33:17 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2017-05-15 05:17:59 -0600

Seen: 358 times

Last updated: May 15 '17