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

Pengatom's profile - activity

2016-10-06 22:02:27 -0500 received badge  Famous Question (source)
2016-06-21 07:49:40 -0500 received badge  Self-Learner (source)
2016-06-21 07:49:40 -0500 received badge  Teacher (source)
2016-02-22 13:02:10 -0500 received badge  Notable Question (source)
2016-02-19 07:31:16 -0500 commented answer Node doesn't receive message, but rostopic list/info sees it

Voila! Thanks Should've been better explained that this is needed. In the tutorial it's only mentioned as something to add if one cannot ssh to the machine - which I could...

2016-02-19 03:32:58 -0500 received badge  Popular Question (source)
2016-02-18 15:46:56 -0500 received badge  Organizer (source)
2016-02-18 15:31:16 -0500 asked a question Node doesn't receive message, but rostopic list/info sees it

I've modified the turtlesim tutorial to control some servos from a ps3 controller, and everything works fine when everything is running from my laptop. Now I want to move the part/file that actually do the moving of the servos over to a RPi.

I've added

export ROS_MASTER_URI=http://Yoda.local:11311

to the .bashrc on both nodes.

rostopic list/info/type displays the same info on both laptop and RPi, but when I try to get any actual data out, the RPi doesn't receive anything on rostopic echo/hz

I've tried running

rostopic pub -r 10 /robonova3/cmd_vel geometry_msgs/Twist '{linear: {x: 0.1, y: 0.0, z: 0.0}, angular: {x: 0.0,y: 0.0,z: 0.0}}'

on both machines, but its only picked up locally, not by the other machine...

Any suggestions?

2016-02-03 11:56:40 -0500 received badge  Scholar (source)
2016-02-02 06:44:19 -0500 received badge  Famous Question (source)
2016-02-02 04:52:56 -0500 answered a question FT232H - python_GPIO ftdi_usb_open failed

Well, I can only say The devil is in the detail! Last night I ended up with this:

SUBSYSTEM=="tty", ATTR{idProduct}=="6014", ATTRS{idVendor}=="0403", MODE="0660", GROUP="dialout"

and here is the solution:

SUBSYSTEM=="usb", ATTR{idProduct}=="6014", ATTRS{idVendor}=="0403", MODE="0660", GROUP="dialout"

Changing tty to usb, three small letters did the trick!

Thanks to duck-development for the input!

2016-02-02 02:26:25 -0500 received badge  Enthusiast
2016-02-02 02:26:14 -0500 received badge  Enthusiast
2016-02-02 02:26:10 -0500 received badge  Enthusiast
2016-02-01 16:19:30 -0500 commented answer FT232H - python_GPIO ftdi_usb_open failed

Thanks for helping me along here! - Sorry for not getting back before, haven't had time to do anything before now. I'm waay out of my comfort zone here, which is a good thing - but it means I'll need some more inputs. I've updated the question with some more info...

2016-01-31 17:15:18 -0500 received badge  Notable Question (source)
2016-01-31 16:30:31 -0500 received badge  Popular Question (source)
2016-01-31 11:50:27 -0500 commented question FT232H - python_GPIO ftdi_usb_open failed

Fixed. Thanx for pointing it out!

2016-01-31 11:48:49 -0500 received badge  Editor (source)
2016-01-30 08:22:27 -0500 asked a question FT232H - python_GPIO ftdi_usb_open failed

Hi,

I have a FT232H connected to a 16 ch servo controller over I2C. Both boards are from Adafruit I've installed python 2.7 and all other necessary drivers and library according to this guide. I ran the Servo_Example.py (as sudo python Servo_Example.py) and the servo moves as expected.

The thing is, this library expects to be run as sudo, and I want to control this as a part of ROS, which is not supposed to be run as sudo (as far as I can see from documentation and forums).

The "Adafruit-part" works when running "sudo python script1.py" and the "ROS-part" works when running "python script2.py" The problem is when I try to combine these two into "script3.py". Running it with sudo gives library import from all ROS libraries (that was working fine earlier) and without sudo it seems that it doesn't have the rights to access the usb port.

With sudo the error message is:

ImportError: No module named xxx

(where xxx is the topmost non-commented line, and changes accordingly if I try to run the script with one of the libraries commented out)

Without sudo the error message is

RuntimeError: ftdi_usb_open failed with error -4: usb_open() failed

(after I edited the driver to not include "check_running_as_root()" cause it failed with that anyway as I'm trying to avoid running as root)

running ls -l /dev/ttyUSB0 gives

crw-rw---- 1 root dialout 188, 0 Jan 30 10:59 /dev/ttyUSB0

Running udevadm info -a -p $(udevadm info -q path -n /dev/ttyUSB0) gives a ton of information, sorting through it, I made a udev.rules file in /etc/udev/rules.d/

#FT2232 Adapter 
SUBSYSTEM=="tty", ACTION=="add", DRIVERS=="?*", ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6014", OWNER:="second_user", GROUP:="my_group", MODE:="0770"

after unplugging and running sudo udevadm control --reload-rules and plugging back in, this is updated to

crwxrwx--- 1 second_user my_group 188, 0 Feb 1 22:16 /dev/ttyUSB0

So, something is happening here at least, but it doesn't do much good. Running my python scripts still gives me ftdi_usb_open error. Any thoughts on how to move forward from here?

Regards Pengatom

2016-01-28 13:36:25 -0500 received badge  Supporter (source)