rosserial_python problem [closed]

asked 2016-05-03 07:55:06 -0600

Emilien gravatar image

hi, i have an error when i run this command:

pi@raspberrypi ~/catkin_ws $ rosrun rosserial_python serial_node.py /dev/ttyACM0[INFO] [WallTime: 1462279527.419855] ROS Serial Python Node
[INFO] [WallTime: 1462279527.608365] Connecting to /dev/ttyACM0 at 57600 baud
Traceback (most recent call last):
  File "/home/pi/catkin_ws/src/rosserial/rosserial_python/nodes/serial_node.py", line 80, in <module>
    client = SerialClient(port_name, baud)
  File "/home/pi/catkin_ws/src/rosserial/rosserial_python/src/rosserial_python/SerialClient.py", line 382, in __init__
    self.requestTopics()
  File "/home/pi/catkin_ws/src/rosserial/rosserial_python/src/rosserial_python/SerialClient.py", line 389, in requestTopics
    self.port.flushInput()
  File "/usr/lib/python2.7/dist-packages/serial/serialposix.py", line 500, in flushInput
    termios.tcflush(self.fd, TERMIOS.TCIFLUSH)
termios.error: (5, 'Input/output error')

could you tell me what 's ths problem please? when i hsed just ultrasound sensor, all is ok but when i add also servo controller i receive this error. i use this configuration on CMake:

cmake_minimum_required(VERSION 2.8.3)

include_directories(${ROS_LIB_DIR})

# Remove this if using an Arduino without native USB (eg, other than Leonardo)
#add_definitions(-DUSB_CON)

generate_arduino_firmware(hello
  SRCS chatter.cpp ${ROS_LIB_DIR}/time.cpp
  BOARD uno
  PORT /dev/ttyACM0
)
edit retag flag offensive reopen merge delete

Closed for the following reason duplicate question by ahendrix
close date 2016-05-03 14:28:35.741980

Comments

ahendrix gravatar imageahendrix ( 2016-05-03 14:28:29 -0600 )edit

i duplicate it because i dont receive answer!!! close the old one

Emilien gravatar imageEmilien ( 2016-05-03 15:47:10 -0600 )edit

The old question has an ongoing discussion. No need to ask the same question again if someone is already trying to help you.

ahendrix gravatar imageahendrix ( 2016-05-03 16:04:06 -0600 )edit