KRSSG / robocup

Main Code Base for SSL
21 stars 27 forks source link

GUI Dev #1

Closed annimesh2809 closed 5 years ago

annimesh2809 commented 7 years ago

This issue will serve for any queries and updates regarding the GUI development.

annimesh2809 commented 7 years ago

@KgpKubs/gui Install PyQt5 and QtDesigner (or QtCreator) (stable versions).

@KgpKubs/all For the current simple case, I was thinking of a simple API like:

Communication protocol (rosmsgs):

Path Planner ---> GUI

rgb.msg

uint8 r
uint8 g
uint8 b

point.msg

int32 x
int32 y

path.msg

point[] vertices
rgb color

The gui will subscribe for path.msg type data and will redraw the path everytime it recieves a ros message.

GUI ---> Path Planner

Some parameters for controlling step-size etc. (This msg should be defined by @KgpKubs/path)

Function prototype (would be implemented in Python)

err_f ssl::gui::debug_path(const path& p);

Does this look fine? Any changes?

MayankB11 commented 7 years ago

LGTM

kvmanohar22 commented 7 years ago

Let's change int32 x, int32 y in point.msg to float x, float y. Have a look at this

annimesh2809 commented 7 years ago

@kvmanohar22 That makes sense for calculation of velocities and other floating point calculations. However for drawing lines, I think it would be more suitable to use integer values (until of course we start using anti-aliasing with xiaolin-wu?). Take a look a this drawLine function definiton from QPainter.

annimesh2809 commented 7 years ago

@KgpKubs/gui You guys can start working on this. Any queries should be posted on this issue.

ashishkg0022 commented 7 years ago

@sipah00 see I have written the code #2 . Please start working on it.

sipah00 commented 7 years ago

@ashishkg0022 I have gone through code, and i am working on this.