Legacy Forum: Preserving Nearly 20 Years of Community History - A Time Capsule of Discussions, Memories, and Shared Experiences.

how to do: fluent servo move in C++

Bioloid robot kit from Korean company Robotis; CM5 controller block, AX12 servos..
5 postsPage 1 of 1
5 postsPage 1 of 1

how to do: fluent servo move in C++

Post by nodobra » Mon Jan 10, 2011 7:44 pm

Post by nodobra
Mon Jan 10, 2011 7:44 pm

hello everyone.
i am using robotis library to control servo via USB2dynamixel (TTL) and i am programming it in Visual studio 2005.
i would like to do moves of servo using keyboard arrows.
my algorithm is to get char from keyboard (in the loop) and increment value of goal position.
effect is not well rounded - i want to gain more fluent move (now it is very visible that "steps" are performed one by one).
does anybody know how to fix that problem?
is there a problem about frequency of signals from keyboard to PC?
is there a problem about bitrate of my usb2dynamixel? (tried every rate)
maybe i should completely change the algorithm?
thanks everybody
sorry about my english
hello everyone.
i am using robotis library to control servo via USB2dynamixel (TTL) and i am programming it in Visual studio 2005.
i would like to do moves of servo using keyboard arrows.
my algorithm is to get char from keyboard (in the loop) and increment value of goal position.
effect is not well rounded - i want to gain more fluent move (now it is very visible that "steps" are performed one by one).
does anybody know how to fix that problem?
is there a problem about frequency of signals from keyboard to PC?
is there a problem about bitrate of my usb2dynamixel? (tried every rate)
maybe i should completely change the algorithm?
thanks everybody
sorry about my english
nodobra
Robot Builder
Robot Builder
Posts: 8
Joined: Mon Nov 29, 2010 7:42 pm

Post by billyzelsnack » Mon Jan 10, 2011 8:52 pm

Post by billyzelsnack
Mon Jan 10, 2011 8:52 pm

Instead of commanding the servo to go in a small increments you can command it to go to one of it's extents when a key is pressed. 0 or 1023. When you release the key you can read back the servo position and then set it to that value to stop the servo where it is at.
Instead of commanding the servo to go in a small increments you can command it to go to one of it's extents when a key is pressed. 0 or 1023. When you release the key you can read back the servo position and then set it to that value to stop the servo where it is at.
billyzelsnack
Savvy Roboteer
Savvy Roboteer
User avatar
Posts: 618
Joined: Sat Dec 30, 2006 1:00 am

Post by nodobra » Mon Jan 10, 2011 9:19 pm

Post by nodobra
Mon Jan 10, 2011 9:19 pm

i am afraid uC of dynamixel has to do instrunction that has been sent to and interruption while executing instrunction "write word" is immposibble, ins't it? if you are sure about you opinion pleasy reply, cuz i have no ax-12 to test at the momment and i need to know it becouse of my project which is in progress.
i am afraid uC of dynamixel has to do instrunction that has been sent to and interruption while executing instrunction "write word" is immposibble, ins't it? if you are sure about you opinion pleasy reply, cuz i have no ax-12 to test at the momment and i need to know it becouse of my project which is in progress.
nodobra
Robot Builder
Robot Builder
Posts: 8
Joined: Mon Nov 29, 2010 7:42 pm

Post by billyzelsnack » Mon Jan 10, 2011 10:55 pm

Post by billyzelsnack
Mon Jan 10, 2011 10:55 pm

I don't quite understand your last post.
I don't quite understand your last post.
billyzelsnack
Savvy Roboteer
Savvy Roboteer
User avatar
Posts: 618
Joined: Sat Dec 30, 2006 1:00 am

Control Bioloid with Pc

Post by MOHIT JINDAL » Wed Jan 12, 2011 4:07 am

Post by MOHIT JINDAL
Wed Jan 12, 2011 4:07 am

Hey I also want to Control full Bioloid with Visual C++ with Usb2Dynamixel Please share your code with me when you Complete it.

Cheers mate :D :lol: :roll:
Hey I also want to Control full Bioloid with Visual C++ with Usb2Dynamixel Please share your code with me when you Complete it.

Cheers mate :D :lol: :roll:
MOHIT JINDAL
Savvy Roboteer
Savvy Roboteer
Posts: 178
Joined: Wed Nov 10, 2010 7:43 am


5 postsPage 1 of 1
5 postsPage 1 of 1