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

Fat motion file

KHR-1, KHR-2HV, KHR-3HV, ICS servos, RCB controllers and other Kondo products
8 postsPage 1 of 1
8 postsPage 1 of 1

Fat motion file

Post by Alpha2 » Mon Jul 16, 2007 7:46 am

Post by Alpha2
Mon Jul 16, 2007 7:46 am

I am a owner of KHR-2HV and Manoi AT01.
When I was editing a motion file with Heart2Heart3, I found that it took several minutes to save a motion file to a hard disk. The saved file has the size of more than 100 KB. The content of this fat motion file has many lines of unused junk link data like bellow.

[LinkXXX]
Main=0
Origin=-1
Final=-1
Point=

I found in the discussion of a forum of Robot Life Online that this is caused by a bug of Heart2Heart3. I don't know in what occasion this bug is triggered

So, I made a web page to reduce the size of a fat motion file.

http://www7a.biglobe.ne.jp/~alpha2mac/RCB_Shrink_E/

Copy & paste the content of your fat motion file into the form of the web page and crick [Shrink] button. Then you can get a slimmed motion file.
I am a owner of KHR-2HV and Manoi AT01.
When I was editing a motion file with Heart2Heart3, I found that it took several minutes to save a motion file to a hard disk. The saved file has the size of more than 100 KB. The content of this fat motion file has many lines of unused junk link data like bellow.

[LinkXXX]
Main=0
Origin=-1
Final=-1
Point=

I found in the discussion of a forum of Robot Life Online that this is caused by a bug of Heart2Heart3. I don't know in what occasion this bug is triggered

So, I made a web page to reduce the size of a fat motion file.

http://www7a.biglobe.ne.jp/~alpha2mac/RCB_Shrink_E/

Copy & paste the content of your fat motion file into the form of the web page and crick [Shrink] button. Then you can get a slimmed motion file.
Alpha2
Robot Builder
Robot Builder
Posts: 14
Joined: Mon Jul 16, 2007 7:43 am

Post by crabfu » Mon Jul 16, 2007 11:23 pm

Post by crabfu
Mon Jul 16, 2007 11:23 pm

This started to happen to me recently, and my files are now well over 1mb in size, which takes a few minutes to save for some reason. The best that I can tell is it's from repeatedly opening files, modifying and saving.... every import adds a bit of junk under the hood or something? My earlier files are many times smaller.

Anyway thanks for doing this Alpha2, I'll have to give it a try :)

-Crabfu
This started to happen to me recently, and my files are now well over 1mb in size, which takes a few minutes to save for some reason. The best that I can tell is it's from repeatedly opening files, modifying and saving.... every import adds a bit of junk under the hood or something? My earlier files are many times smaller.

Anyway thanks for doing this Alpha2, I'll have to give it a try :)

-Crabfu
crabfu
Newbie
Newbie
Posts: 6
Joined: Tue Jul 03, 2007 6:31 pm

Post by Ray » Tue Jul 17, 2007 4:43 pm

Post by Ray
Tue Jul 17, 2007 4:43 pm

Well, this is a bug of H2H I found previously.

The reason is that when you delete the present blocks of flowchart by dragging a rectangle etc, you only delete some information of the present
motion file, other information still remained.
so, when you add new flowchart and save the file in other names and repeat the process you get large amount of hidden information :shock:

My method is similar,

Recommendation:
1) quit the software, re-open and make a new motion file. or
2) HIGHLIGHT one of the block and click the "select all" and the "delete"
this will erase all the hidden information.


Remedy:
open you present "fat file" drag and highlight your flowchart, right-click with copy then right-click with any one block with "select all" and then right-click with "delete" ----[delete hidden information]
press control-V to paste back the original information and save your file.

that is my finding :wink:
Well, this is a bug of H2H I found previously.

The reason is that when you delete the present blocks of flowchart by dragging a rectangle etc, you only delete some information of the present
motion file, other information still remained.
so, when you add new flowchart and save the file in other names and repeat the process you get large amount of hidden information :shock:

My method is similar,

Recommendation:
1) quit the software, re-open and make a new motion file. or
2) HIGHLIGHT one of the block and click the "select all" and the "delete"
this will erase all the hidden information.


Remedy:
open you present "fat file" drag and highlight your flowchart, right-click with copy then right-click with any one block with "select all" and then right-click with "delete" ----[delete hidden information]
press control-V to paste back the original information and save your file.

that is my finding :wink:
Ray
Savvy Roboteer
Savvy Roboteer
User avatar
Posts: 230
Joined: Sun Apr 23, 2006 1:00 am
Location: HK

Post by crabfu » Tue Jul 17, 2007 5:23 pm

Post by crabfu
Tue Jul 17, 2007 5:23 pm

Ray wrote:Well, this is a bug of H2H I found previously.

Remedy:
open you present "fat file" drag and highlight your flowchart, right-click with copy then right-click with any one block with "select all" and then right-click with "delete" ----[delete hidden information]
press control-V to paste back the original information and save your file.

that is my finding :wink:


Ray, this is brilliant! I opened up one of my files, and there were gazillion copies of a pos that does not exist. I will have to try your method, that's an awesome work around!

And Alpha2... I tried to paste my fat file into your page, but it just freezes my browser. I've tried it with netscape and firefox, and it locks up both of them. Maybe my file is too big? :)

Thanks guys for addressing the bug, and finding solutions!

-Crabfu
Ray wrote:Well, this is a bug of H2H I found previously.

Remedy:
open you present "fat file" drag and highlight your flowchart, right-click with copy then right-click with any one block with "select all" and then right-click with "delete" ----[delete hidden information]
press control-V to paste back the original information and save your file.

that is my finding :wink:


Ray, this is brilliant! I opened up one of my files, and there were gazillion copies of a pos that does not exist. I will have to try your method, that's an awesome work around!

And Alpha2... I tried to paste my fat file into your page, but it just freezes my browser. I've tried it with netscape and firefox, and it locks up both of them. Maybe my file is too big? :)

Thanks guys for addressing the bug, and finding solutions!

-Crabfu
crabfu
Newbie
Newbie
Posts: 6
Joined: Tue Jul 03, 2007 6:31 pm

Post by crabfu » Thu Jul 19, 2007 9:41 pm

Post by crabfu
Thu Jul 19, 2007 9:41 pm

Ray wrote:Well, this is a bug of H2H I found previously.

Remedy:
open you present "fat file" drag and highlight your flowchart, right-click with copy then right-click with any one block with "select all" and then right-click with "delete" ----[delete hidden information]
press control-V to paste back the original information and save your file.

that is my finding :wink:


Tried it out and it works perfectly Ray, thank a million! I had a file that was over 2MB, and took forever to save. With your method, it's now 4k, and saving time is instant :)

So selecting via mouse, selects all that is visible, and nothing else.

Selecting by right clicking with the "all selection", actually selects everything, including junk that isn't visible.

That's very good to know!

-Crabfu
Ray wrote:Well, this is a bug of H2H I found previously.

Remedy:
open you present "fat file" drag and highlight your flowchart, right-click with copy then right-click with any one block with "select all" and then right-click with "delete" ----[delete hidden information]
press control-V to paste back the original information and save your file.

that is my finding :wink:


Tried it out and it works perfectly Ray, thank a million! I had a file that was over 2MB, and took forever to save. With your method, it's now 4k, and saving time is instant :)

So selecting via mouse, selects all that is visible, and nothing else.

Selecting by right clicking with the "all selection", actually selects everything, including junk that isn't visible.

That's very good to know!

-Crabfu
crabfu
Newbie
Newbie
Posts: 6
Joined: Tue Jul 03, 2007 6:31 pm

Post by Ray » Mon Jul 23, 2007 12:31 pm

Post by Ray
Mon Jul 23, 2007 12:31 pm

cheer :D
cheer :D
Ray
Savvy Roboteer
Savvy Roboteer
User avatar
Posts: 230
Joined: Sun Apr 23, 2006 1:00 am
Location: HK

Post by Alpha2 » Fri Aug 17, 2007 12:58 pm

Post by Alpha2
Fri Aug 17, 2007 12:58 pm

Kondo posted an article (Japanese) on how to reduce the size of the fat motion file on their web site.
http://www.kondo-robot.com/html/TechInf ... port1.html

They also posted the file modification program.
http://www.kondo-robot.com/software/RcbFilePatch.exe

Drag and drop your fat motion file onto the icon of this program.
Kondo posted an article (Japanese) on how to reduce the size of the fat motion file on their web site.
http://www.kondo-robot.com/html/TechInf ... port1.html

They also posted the file modification program.
http://www.kondo-robot.com/software/RcbFilePatch.exe

Drag and drop your fat motion file onto the icon of this program.
Alpha2
Robot Builder
Robot Builder
Posts: 14
Joined: Mon Jul 16, 2007 7:43 am

Post by tempusmaster » Fri Aug 17, 2007 3:43 pm

Post by tempusmaster
Fri Aug 17, 2007 3:43 pm

Alpha2 wrote:Kondo posted an article (Japanese) on how to reduce the size of the fat motion file on their web site.
http://www.kondo-robot.com/html/TechInf ... port1.html

Seems identical to the procedure Ray recommended. 8)

They also posted the file modification program.
http://www.kondo-robot.com/software/RcbFilePatch.exe

Drag and drop your fat motion file onto the icon of this program.

Thanks. :)
Alpha2 wrote:Kondo posted an article (Japanese) on how to reduce the size of the fat motion file on their web site.
http://www.kondo-robot.com/html/TechInf ... port1.html

Seems identical to the procedure Ray recommended. 8)

They also posted the file modification program.
http://www.kondo-robot.com/software/RcbFilePatch.exe

Drag and drop your fat motion file onto the icon of this program.

Thanks. :)
Latest robot news, information, reviews, hacks, photos, and videos - with special on-site coverage from Japan
http://www.robots-dreams.com
tempusmaster
Site Admin
Site Admin
User avatar
Posts: 532
Joined: Thu Oct 27, 2005 1:00 am


8 postsPage 1 of 1
8 postsPage 1 of 1