RoboticsAcademy icon indicating copy to clipboard operation
RoboticsAcademy copied to clipboard

[Obstacle Avoidance] improvements in the forces GUI display

Open jmplaza opened this issue 1 year ago • 5 comments

  • [ ] the car should not be red, as the repulsive forces are already red, and so they are not distinguished. Maybe gold+black, as the current F1 car.
  • [ ] the car should be located in the center of the display, not in the lower part. This way the repulsive forces will be properly displayed, they usually point to the rear part of the car as the laser sensor is looking forward
  • [ ] 10m and 25m are wrong, they should be replaced by real distances in meters. They can be estimated according to the laser sensor readings.

jmplaza avatar Oct 23 '23 21:10 jmplaza

@jmplaza Can I work on this issue? Or is it already assigned to ango1994 and the work is in progress?

AnushkaGharage avatar Jan 15 '24 09:01 AnushkaGharage

Sure. There is no "booking mechanism". Feel free to submit a PullRequest solving this issue.

In case of several people working in the issue, the first received PR effectively solving it will be reviewed and merged :-)

jmplaza avatar Jan 15 '24 09:01 jmplaza

@jmplaza

  1. I have changed the color to gold
  2. Located the car in the center of the first square

I didn't quite understand the third issue. Will you please elaborate on that more?

AnushkaGharage avatar Jan 27 '24 10:01 AnushkaGharage

Sure @AnushkaGharage ,

the 10m and 25m rectangles at the current frontend are not located in true real distances. obstacle-avoidance-frontend They should be replaced with the real distances, and maybe moved a little bit to "round numbers".

Could you share a snapshot of the frontend with your changes?

jmplaza avatar Jan 27 '24 16:01 jmplaza

@jmplaza I tried running 'yarn run dev' and it shows following error - """ ERROR in ./src/exercise-index.js 91:19-62 Module not found: Error: Can't resolve 'exercises' in 'C:\Users\ghara\OneDrive\Desktop\RADI\RoboticsAcademy\react_frontend\src' """

And below error after running 'python3 manage.py runserver' """ WebpackError at /exercises/ ModuleNotFoundError in Module not found: Error: Can't resolve 'exercises' in 'C:\Users\ghara\OneDrive\Desktop\RADI\RoboticsAcademy\react_frontend\src' """ But there is no directory inside src named exercises

So I am trying to find a solution for this error.

AnushkaGharage avatar Jan 29 '24 13:01 AnushkaGharage

Screenshot from 2024-03-29 18-09-22 Hey @jmplaza, I have changed the color of the position of arrows and laser scans, but i'm not sure about how to move the rectangles(10m and 25m) or convert their scale.

damodardatta avatar Mar 29 '24 20:03 damodardatta

Well done @damodardatta. The rectangles are wrong now, their motivation is to show to the student an estimate of the real distances around the car. Maybe 10m and 25m are too far, and the good numbers should be 3m and 5m. Maybe you can look at the laser values (as they are measured in meters or centimeters) to set the rectangle scale...

jmplaza avatar Mar 31 '24 14:03 jmplaza

Screenshot from 2024-04-02 23-59-54

Hi @jmplaza, i changed the values and changed the rectangles to semicircle as i felt they would be more intuitive. Let know if this is ok?

damodardatta avatar Apr 02 '24 22:04 damodardatta

As this UI has already been updated I will close this issue. Screenshot from 2024-07-03 18-21-19

If you want to continue modifying this UI please open a new one

javizqh avatar Jul 03 '24 16:07 javizqh