robocup-at-work / atwork-commander

This repository hosts the completly new developed Refbox for the @Work RoboCup league.
MIT License
7 stars 6 forks source link

problem with workstations name and type #43

Open MRJ-XZ opened 8 months ago

MRJ-XZ commented 8 months ago

Greetings, I tried to generate a task; however using rostopic echo command, i noticed that workstations type comes in the place of their names and their type is empty. I investigated a bit in generator.cpp of simple task generator and found out this:

Line468: task.arena_start_state[i].name = table.second.name; Line469: task.arena_start_state[i].name = table.second.type; Line470: task.arena_target_state[i].name = table.second.name; Line471: task.arena_target_state[i].name = table.second.type;

It seems that workstation type overwrites workstation name, so the incoming task only contains workstations type. after changing the code a bit, everything works fine and workstation name and type are correct.