Screenshots     Download     Purchase     Documentation     Tutorials     Resources     Contact     Forum     Search  

 

This Thread

 Reply   New Post   Forum Index 

 
Cropping using variables
patrick  [14 posts]
8 months

Buy the Lynxmotion SSC-32 Servo Controller from Trossen Robotics
I think there maybe a problem when cropping an image using variables generated from point location(etc).
If these points are changing rapidly then RR crashes.
Disable the crop command in the pipeline and it runs fine.

There is also a bug on  posting question to the forum.
If your category is a module and you then select a specific module it still tells you to "select a related module for this post" so unable to post unless you select something other than module.
Steven Gentner from United States  [2169 posts] 8 months
Patrick,

Could you include a sample robofile? We've included ours that did not cause an issue. Perhaps something else in your robofile is interacting with the crop module in an unknown way.

STeven.
program.robo
patrick  [14 posts] 8 months
Steven,
Attached is the program which was crashing.As you can see one of the variables in the crop command has changed to a @ and this would no doubt crash RR.
I have had this a few times in cropping (using variables or numbers) where the value is replaced by a character.
Pat
program.robo
Steven Gentner from United States  [2169 posts] 8 months
Patrick,

thanks for the robofile. That helped to correct the crashing issue. The other issue that causes the numbers or variables to be replaced by those symbols is still a bit of a mystery. Do you know more about when that has happened? Can you cause it to happen on command?

Please download the latest version of RR before testing this as it includes a couple fixes surrounding the crop module.

Thanks!
STeven.
Paul from Canada  [37 posts] 8 months
I have seen this with the cropping module in X end and Y end places. The replaced characters seem to be consistant.
Steven Gentner from United States  [2169 posts] 7 months
Paul,

Are you able to replicate this issue reliably in any way?

STeven.
Paul from Canada  [37 posts] 7 months
Next time this occurs I will look at the robo file to determine what values are in the crop module.

Steven Gentner from United States  [2169 posts] 7 months
Thanks!!

STeven.
patrick  [14 posts] 7 months
Hi Steven,
Just a suggestion but is it when the crop value is a greater value than the actual image size.
I can't seem to repeat this but I did notice I had a crop value of X end 1000 when the image size was max of 960 or 970.
Like Paul said it always seems to be the end values which are corrupted.
Pat
Paul from Canada  [37 posts] 7 months
Here is a scan of a section of a robo file that shows the extended characters in the crop module.


Steven Gentner from United States  [2169 posts] 6 months
Paul,

We finally found that error. Had to do with when the image being processed would change size. The xend and yend variables were being set incorrectly when this happened. This has been fixed in 2.0.8.5

Thanks!
STeven.

 Reply   New Post   Forum Index 

© 2005 - 2010 RoboRealm. All Rights Reserved. | Contact | Glossary | Privacy | Disclaimer | Link to Us | Resources | Site Map