Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create the environment JSON file for the year 2019. #10

Open
3 tasks
Terae opened this issue Nov 24, 2018 · 3 comments
Open
3 tasks

Create the environment JSON file for the year 2019. #10

Terae opened this issue Nov 24, 2018 · 3 comments
Assignees
Labels
good first issue Good for newcomers help wanted Extra attention is needed medium priority

Comments

@Terae
Copy link
Member

Terae commented Nov 24, 2018

All the configuration table is saved on an JSON file: it is easy to work with and we do not need to compile each time the project to make a change effective.

These configurations are saved on the commun directory, and previous tables examples are still in the project. For example, this is the 2018's json file.

Every new year, we need to create this file using the Cup rules. This task is very important to make working:

  • the simulator
  • the known environment of the robot
    • emplacement of unauthorized moves
    • emplacement of each object to work with

To realize this job more conveniently, @BynaryCobweb developed a python graphical application which exports a the json file. Then, the file needs to be saved in the same directory that previous years' configurations.

Remember, after each modification, you should rerun cmake (in CLion: Tools -> CMake -> Reload CMake Project) to make modifications effective, because the configuration is copied by this CMakeLists.txt on the C++ code.

The file needs to contain these data:

  • type, angle, size and dimensions - used by both environment and simulator
  • color, dynamic type, mass, enabled flag - for the simulator
  • enabled flag - for the environment; walls are enabled to make the robot able to calculate its trajectory, but cubes are not because they don't influence the navigation

If it might help you, the JSON file is used here for the environment and here for the simulator.

@Terae Terae added help wanted Extra attention is needed good first issue Good for newcomers medium priority labels Nov 24, 2018
@Bycob
Copy link
Member

Bycob commented Dec 3, 2018

To visualize the table in 3D, you can use the simulator, with very few work required.

  • Checkout the branch develop, get the last version of the code with git pull and compile it
  • Given that your json file is named table.json, call the simulator as follows
./Simulator --color green --load table.json

You should see the simulator display the table as you specified :)

@DouarreQ
Copy link

Hey j'ai push le début de la table da,s la branche dev-tablejson

@DouarreQ
Copy link

J'ai push une autre version de la table

@RubenGres RubenGres removed their assignment Aug 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers help wanted Extra attention is needed medium priority
Projects
None yet
Development

No branches or pull requests

5 participants