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

Motion File Editing Issue

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

Post by Fritzoid » Tue Jun 07, 2011 6:06 pm

Post by Fritzoid
Tue Jun 07, 2011 6:06 pm

Hi bbulug,

There are at least three things the download routine is looking at to determine if the motion file is valid.

1. The file must start with the hexadecimal string 0xEFBBBF.

2. Strings "type=motion" and "version=1.01" must follow that.

3. A two-byte check sum must appear at the end of the file.

See the following post for details http://robosavvy.com/forum/viewtopic.php?t=7184

You will need a hex editor to examine the binary fields.
Hi bbulug,

There are at least three things the download routine is looking at to determine if the motion file is valid.

1. The file must start with the hexadecimal string 0xEFBBBF.

2. Strings "type=motion" and "version=1.01" must follow that.

3. A two-byte check sum must appear at the end of the file.

See the following post for details http://robosavvy.com/forum/viewtopic.php?t=7184

You will need a hex editor to examine the binary fields.
Fritzoid
Savvy Roboteer
Savvy Roboteer
User avatar
Posts: 331
Joined: Mon Dec 18, 2006 1:00 am

Post by Fritzoid » Wed Jun 08, 2011 12:39 pm

Post by Fritzoid
Wed Jun 08, 2011 12:39 pm

If you can load the file into RoboPlus Motion then the check sum should be correct. If not you will need to modify the file outside of RoboPlus.

Depending on your level of expertise, here are your options.

Edit the file by hand using a hex editor after recalculating the check sum with a simple program.

If your a java programmer you can download my MotionEdit source code and get it running on you system. This code reads and writes motion files and can be easily adapted to your situation.

Finally, you can upload the file to your files area (after zipping it of course) and I can run it through program for you.
If you can load the file into RoboPlus Motion then the check sum should be correct. If not you will need to modify the file outside of RoboPlus.

Depending on your level of expertise, here are your options.

Edit the file by hand using a hex editor after recalculating the check sum with a simple program.

If your a java programmer you can download my MotionEdit source code and get it running on you system. This code reads and writes motion files and can be easily adapted to your situation.

Finally, you can upload the file to your files area (after zipping it of course) and I can run it through program for you.
Fritzoid
Savvy Roboteer
Savvy Roboteer
User avatar
Posts: 331
Joined: Mon Dec 18, 2006 1:00 am

Post by MOHIT JINDAL » Thu Jun 16, 2011 5:18 pm

Post by MOHIT JINDAL
Thu Jun 16, 2011 5:18 pm

Hi Fritzoid,
One motion page has 7 steps.
When i play it starts from step 0 and stop at step 7.
Is there any way to repeat the steps ? 0 to 7 and then 7 to again 0 in same motion page :roll: Like a circle. :lol:
Hi Fritzoid,
One motion page has 7 steps.
When i play it starts from step 0 and stop at step 7.
Is there any way to repeat the steps ? 0 to 7 and then 7 to again 0 in same motion page :roll: Like a circle. :lol:
MOHIT JINDAL
Savvy Roboteer
Savvy Roboteer
Posts: 178
Joined: Wed Nov 10, 2010 7:43 am

Post by Fritzoid » Fri Jun 17, 2011 1:05 pm

Post by Fritzoid
Fri Jun 17, 2011 1:05 pm

Hi MOHIT,

You have two options here. You can use either the motion page repeat count or the next page number. The question is do you want to run the cycle a fixed number of times or do you want to run it forever.

Say you want to run the cycle four times then go on to play motion page seven. You would set the repeat count to 4 and the next page number to 7. If you just want to run the motion five times then stop you would set the repeat count to 5 and the next page number to 0.

However if you want to run the loop continuously you would set the repeat count to 1 and set the next page number to itself, the current page number. The motion would then run over and over until you sent an EXIT or STOP command.
Hi MOHIT,

You have two options here. You can use either the motion page repeat count or the next page number. The question is do you want to run the cycle a fixed number of times or do you want to run it forever.

Say you want to run the cycle four times then go on to play motion page seven. You would set the repeat count to 4 and the next page number to 7. If you just want to run the motion five times then stop you would set the repeat count to 5 and the next page number to 0.

However if you want to run the loop continuously you would set the repeat count to 1 and set the next page number to itself, the current page number. The motion would then run over and over until you sent an EXIT or STOP command.
Fritzoid
Savvy Roboteer
Savvy Roboteer
User avatar
Posts: 331
Joined: Mon Dec 18, 2006 1:00 am


4 postsPage 1 of 1
4 postsPage 1 of 1