Trouble communicating with Dynamixel in Python

asked 2015-06-17 07:03:44 -0500

Madhu gravatar image

updated 2015-06-18 10:15:53 -0500

I am using Dynamixel 106+ those were connected to some manipulator.Initially the people worked on that manipulator developed the code and used them in C++ in ROS Fuerte. With using those codes ,they worked ..

When I come to work on on those I used the code of Python in Ros Indigo.After running those motors through C++ they worked properly,immediately after I connected the same motors with Ros indigo Python.They were pinged and showed the motor IDs and all.Later on when I published the position they worked fine for first,and from the next time the motors are neither responding to my publishing data not to that C++ code. What should I do.??

Am usng Python 2.7.6..

Its the program that I used for Publishing position in python ..

#!/usr/bin/env python
import roslib;roslib.load_manifest('dynamixel_tutorials')
import rospy
from std_msgs.msg import Float64

if __name__ =="__main__":
    pub = rospy.Publisher('/motor1/command', Float64)
    r = rospy.Rate(10)
    if not rospy.is_shutdown():
        counter = -15
        while (True):
            int = counter*3.14/180  #Converting degrees to radians.
    #This part ensures that the input is sent continously clockwise and anti-clockwise.
            if(counter == 15):
            elif(counter == -15):

help me out..

edit retag flag offensive close merge delete



I edited your question title to help people better understand what your question is about. Please try to be descriptive. People won't be able to help you unless you provide details by editing your original question. What ROS package are you trying to use? ROS version? Python version? Sample code?

jarvisschultz gravatar image jarvisschultz  ( 2015-06-17 07:40:01 -0500 )edit