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

behavior control program qns?

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

behavior control program qns?

Post by monyet1984 » Wed Dec 23, 2009 9:55 am

Post by monyet1984
Wed Dec 23, 2009 9:55 am

how to program continuously play motion play page?

like i want play 1,2 and 3 together in one movement

anybody care for help...thank you
how to program continuously play motion play page?

like i want play 1,2 and 3 together in one movement

anybody care for help...thank you
monyet1984
Newbie
Newbie
Posts: 5
Joined: Fri Dec 04, 2009 10:06 am

Post by PedroR » Thu Dec 24, 2009 10:47 am

Post by PedroR
Thu Dec 24, 2009 10:47 am

hi

please look in the documentation of Motion Editor.

There is an option to set the "Next Motion Page" to play.

You need to program Page 1 to point to Page 2, page 2 to point to page 3 and page 3 to point back to page 1.

Pedro.
hi

please look in the documentation of Motion Editor.

There is an option to set the "Next Motion Page" to play.

You need to program Page 1 to point to Page 2, page 2 to point to page 3 and page 3 to point back to page 1.

Pedro.
PedroR
Savvy Roboteer
Savvy Roboteer
Posts: 1199
Joined: Mon Jun 16, 2008 11:07 pm

Post by Darkback2 » Sat Dec 26, 2009 5:21 am

Post by Darkback2
Sat Dec 26, 2009 5:21 am

Hey,

I just ran into the same problem. I ended up using the timer function so that it would trigger the next motion after a certain amount of time.

Hope this helps. I'll try to post exact code if I can later.

DB
Hey,

I just ran into the same problem. I ended up using the timer function so that it would trigger the next motion after a certain amount of time.

Hope this helps. I'll try to post exact code if I can later.

DB
Darkback2
Robot Builder
Robot Builder
Posts: 17
Joined: Sat Nov 08, 2008 7:51 pm

Post by Darkback2 » Sat Dec 26, 2009 5:32 am

Post by Darkback2
Sat Dec 26, 2009 5:32 am

Here is what I ended up with.

[load][timer][50]
[load][print][timer]
[if][timer][.][0][then][jump][timer]
[if][timer][=][0][then][jump][nextmove]

This is probably the worst way to go about doing this. You could also try the call function...

I'll keep at it.

DB
Here is what I ended up with.

[load][timer][50]
[load][print][timer]
[if][timer][.][0][then][jump][timer]
[if][timer][=][0][then][jump][nextmove]

This is probably the worst way to go about doing this. You could also try the call function...

I'll keep at it.

DB
Darkback2
Robot Builder
Robot Builder
Posts: 17
Joined: Sat Nov 08, 2008 7:51 pm

Post by PedroR » Mon Dec 28, 2009 12:48 pm

Post by PedroR
Mon Dec 28, 2009 12:48 pm

if you're looking to test if a motion page is still playing there is a better way to do it:

[LOOP]
[MotionPage] = X
[CONDITION STAND] - While [MotionPage] != 0
[NEXT motion page]....

[END LOOP]

To determine if a MotionPage is still running you check IF [MotionPage] == 0

If the motion page is running this check will return the number of the motion playing.
If the motion has ended, it will return 0.

Finally, if you want to interrupt a motion while it is running set:
[MotionPage] = 0


Regards
Pedro.
if you're looking to test if a motion page is still playing there is a better way to do it:

[LOOP]
[MotionPage] = X
[CONDITION STAND] - While [MotionPage] != 0
[NEXT motion page]....

[END LOOP]

To determine if a MotionPage is still running you check IF [MotionPage] == 0

If the motion page is running this check will return the number of the motion playing.
If the motion has ended, it will return 0.

Finally, if you want to interrupt a motion while it is running set:
[MotionPage] = 0


Regards
Pedro.
PedroR
Savvy Roboteer
Savvy Roboteer
Posts: 1199
Joined: Mon Jun 16, 2008 11:07 pm


5 postsPage 1 of 1
5 postsPage 1 of 1