Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Greeting of the day,

I am working with Dynamixel EX 106+.I connected those and it works well with C++ programing.Once I started using python to control the motors ,just once they pinged and the next time those were not responding to my C++ program as well as python program too..Please help me.

Greeting of the day,Trouble communicating with Dynamixel in Python

I am working with Dynamixel EX 106+.I connected those and it works well with C++ programing.Once I started using python to control the motors ,just once they pinged and the next time those were not responding to my C++ program as well as python program too..Please help me.

Trouble communicating with Dynamixel in Python

I am working 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 Dynamixel EX 106+.I connected those and it works well with C++ programing.Once I started using python to control the motors ,just once they 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 those were not 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 as well as that I used for Publishing position in python program too..Please ..

!/usr/bin/env python

import roslib;roslib.load_manifest('dynamixel_tutorials') import rospy from std_msgs.msg import Float64

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

Trouble communicating with Dynamixel in Python

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

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

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

help me out..