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

Difficulties programming in Roboplus Task

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

Difficulties programming in Roboplus Task

Post by Naitsirhc » Thu Feb 09, 2012 9:05 am

Post by Naitsirhc
Thu Feb 09, 2012 9:05 am

Hi,

I´m using a CM-700 controller and two Dynamixel Servos for a non robotic application, as they are very well suited for my purpose. For programming of the CM-700 I use RoboPlus Task, which is very good so far as I have no experience in programming microcontrollers yet.
The only problem I have is that I want the two servos to work simultaneously. I use the code shown in the screenshot. At first the function “Servo2” is executed by the servo with the ID[2] and then the movement of the servo with the ID[1]. Because of the “Wait While” in the function the movements can´t be executed at the same time. Is there a possibility to solve this problem with a modification of the code in RoboPlus Task?

Thanks for your help!

Chris

http://imageshack.us/photo/my-images/19/codebz.jpg/[/url]
Hi,

I´m using a CM-700 controller and two Dynamixel Servos for a non robotic application, as they are very well suited for my purpose. For programming of the CM-700 I use RoboPlus Task, which is very good so far as I have no experience in programming microcontrollers yet.
The only problem I have is that I want the two servos to work simultaneously. I use the code shown in the screenshot. At first the function “Servo2” is executed by the servo with the ID[2] and then the movement of the servo with the ID[1]. Because of the “Wait While” in the function the movements can´t be executed at the same time. Is there a possibility to solve this problem with a modification of the code in RoboPlus Task?

Thanks for your help!

Chris

http://imageshack.us/photo/my-images/19/codebz.jpg/[/url]
Naitsirhc
Newbie
Newbie
Posts: 3
Joined: Fri Nov 25, 2011 9:33 am

Post by Fritzoid » Thu Feb 09, 2012 1:14 pm

Post by Fritzoid
Thu Feb 09, 2012 1:14 pm

Naitsirhc,

You can create a custom motion which moves the two servos to the desired positions. The task can then run the motion routine and wait on the completion of the combined move. An added benefit is that both servos will arrive at their final destinations at nearly the same time.
Naitsirhc,

You can create a custom motion which moves the two servos to the desired positions. The task can then run the motion routine and wait on the completion of the combined move. An added benefit is that both servos will arrive at their final destinations at nearly the same time.
Fritzoid
Savvy Roboteer
Savvy Roboteer
User avatar
Posts: 331
Joined: Mon Dec 18, 2006 1:00 am


2 postsPage 1 of 1
2 postsPage 1 of 1