loading
 
Strange angles present for multiple objects
Anonymous
10 years
Hi STeven,

We are having a bit of a hard time figuring out why the angle variables have gone all weird within part of our project. We would like to find the angles of all 3 objects, but the angle variables are strange (see screenshot)

Have you come accross this before?

Best regards

Ian R
Anonymous 10 years
Ian,

It seems that the assignment of the angle variable is not working correctly based on your image but we are not able to replicate the issue. Can you ensure that you have the most recent version of RoboRealm and if so include your image and robofile (.robo) in this posting so that we can isolate the specific issue?

Alternatively, you might be able to solve the issue using the VBScript module to save copies of the variables using:

SetVariable "ANGLE_B", GetVariable("ANGLE")

but we'd like to know why the Set_Variable module is failing regardless.

Thanks,
STeven.
Anonymous 10 years
Hi STeven,

Yes, we will try and send you this file tomorrow. We will also have another go at getting the assignments you said to work

Cheers

Ian
Anonymous 10 years
Hi STeven,

Here is our .robo file for the weird angles.

You will notice in the 'watch variables' operator at the end that the angles ANGLE_C etc. are not angles at all.

Obviously you don't have the colours to test them out, but we had a Cyan, Red and Yellow Triangle on the floor which we were trying to track and get the angles of, as per the new robot point navigating tutorial.

Cheers for now

Ian R
program.robo
Anonymous 10 years
Ian,

A fix has just been uploaded (ver 1.8.2.1) that should correct this issue. The problem was that in the Geometric_Statistics you had selected Individual blobs. This creates an array of values (even if you only have one blob) and the set_variable module was not copying the array correctly. I'd recommend switching the Geometric_Statistics to analyze the entire image which will produce a single value per stat.

The reason is that in other part of the system like the VBScript module you would need to use GetArrayVariable and then access the first (and only) item in that array instead of just using GetVariable ... but as we are not sure what you're next steps (or your actual setup) are the array might be ok. Regardless, the fix should improve the actual values.

STeven.
Anonymous 10 years
Hey STeven,

Cheers for sorting this out for us. We will give it a go next time we are in the lab.

We are not quite sure what our next steps are, but as long as we could get the angles, this is all we were looking for just at the moment. We will, however, keep you updated

Best wishes for now

Ian R

This forum thread has been closed due to inactivity (more than 4 months) or number of replies (more than 50 messages). Please start a New Post and enter a new forum thread with the appropriate title.

 New Post   Forum Index