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

No motors found! [closed]

asked 2015-08-01 22:46:16 -0500

ankitvora gravatar image

updated 2015-08-02 01:28:24 -0500

gvdhoorn gravatar image

I am not able to overcome this error for sometime now. There are similar questions but none of them have been able to solve my problem of "No motors found". Here's the error message that ROS gives when I launch the controller_manager.launch file.

PARAMETERS
 * /dynamixel_manager/namespace: dxl_manager
 * /dynamixel_manager/serial_ports/pan_tilt_port/baud_rate: 1000000
 * /dynamixel_manager/serial_ports/pan_tilt_port/max_motor_id: 8
 * /dynamixel_manager/serial_ports/pan_tilt_port/min_motor_id: 1
 * /dynamixel_manager/serial_ports/pan_tilt_port/port_name: /dev/ttyUSB0
 * /dynamixel_manager/serial_ports/pan_tilt_port/update_rate: 20
 * /rosdistro: indigo
 * /rosversion: 1.11.13

NODES
  /
    dynamixel_manager (dynamixel_controllers/controller_manager.py)

ROS_MASTER_URI=http://localhost:11311

core service [/rosout] found
process[dynamixel_manager-1]: started with pid [5276]
[INFO] [WallTime: 1438486858.620549] pan_tilt_port: Pinging motor IDs 1 through 8...
[FATAL] [WallTime: 1438486859.290363] pan_tilt_port: No motors found.
================================================================================REQUIRED process [dynamixel_manager-1] has died!
process has died [pid 5276, exit code 1, cmd /home/ankit/catkin_ws/src/dynamixe

I followed dynamixel_controllers/Tutorials/ConnectingToDynamixelBus tutorial to create the package and the launch file. I have also setup my motor IDs using the Dynamanager software by Trossen Robotics. I've set the baudrate to 1000000 as recommended.

The interesting thing is that I can see my motors when I use arbotix_python (arbotix_driver & arbotix_terminal) nodes with the ls command. Please can anybody help ?

edit retag flag offensive reopen merge delete

Closed for the following reason question is not relevant or outdated by tfoote
close date 2017-04-15 02:56:29.532745

1 Answer

Sort by ยป oldest newest most voted
0

answered 2015-08-02 06:15:59 -0500

updated 2015-08-02 06:19:49 -0500

Have you set the ID of each motor? There is a command to do that. If you do not set the IDs to be unique, then you do not see one motor, if multiple with the same ID are connected. Because then they all answer and you would get rubbish I guess.


Second thing could be the Interface, do you use the right interface /dev/ttyUSB

If you have other serial interfaces connected the questionmark could be anything from 0-X.


I would do this: Connect 1 motor only, then check your interface and try it again.

edit flag offensive delete link more

Comments

Hi Cyborg ! Thanks for your answer. As mentioned, I've set the motor IDs using Dynamanager. I can also see all the motors when I use 'arbotix_terminal' node and 'ls' command. It shows me all 8 motors. This makes me think that IDs are properly set. Could there be some issue with the launch file ?

ankitvora gravatar image ankitvora  ( 2015-08-02 12:22:19 -0500 )edit

Also, as per your suggestion, I just connected a single motor. Using 'arbotix_terminal' node and 'ls' command, I get 1 motor found with correct motor ID. But with the launch file, I'm still not able to detect the motor. Is it something to do with Indigo ? Or some dependencies ? Don't know :(

ankitvora gravatar image ankitvora  ( 2015-08-02 13:18:27 -0500 )edit

That exactly happened for me when I used two motors with the same ID. Maybe you could try adding them one by one and see which motor has a problem with the launchfile

cyborg-x1 gravatar image cyborg-x1  ( 2015-08-03 02:28:19 -0500 )edit

Not helpful ! None of the motors are recognizable individually :(

ankitvora gravatar image ankitvora  ( 2015-08-05 19:09:33 -0500 )edit

Hmmm, I have two of them here, I see if I find time to test the launchfile, http://wiki.ros.org/dynamixel_control... (it's exactly this one right?)

cyborg-x1 gravatar image cyborg-x1  ( 2015-08-06 02:45:56 -0500 )edit

Btw, have you checked your port? port_name: "/dev/ttyUSB0" If not remove and plugin your serial adapter, and check what dmesg tells you.

[  563.695820] usb 3-2: FTDI USB Serial Device converter now attached to ttyUSB0
cyborg-x1 gravatar image cyborg-x1  ( 2015-08-06 02:47:44 -0500 )edit

Yes it's the same launch file. I have my motors connected to arbotix-m controller. Is it because of that ? Is it because of the controller that it reads the motors when I use 'arbotix_terminal' and not when I use dynamixel manager ? So does it mean I have to use the arbotix stack instead ?

ankitvora gravatar image ankitvora  ( 2015-08-06 06:46:43 -0500 )edit

Uhm, is the other software running meanwhile? If that is the case shut the other one down. Only one process can use the serial by time.

cyborg-x1 gravatar image cyborg-x1  ( 2015-08-06 07:58:59 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2015-08-01 22:46:16 -0500

Seen: 1,425 times

Last updated: Aug 02 '15