rodrigoqueiroz / geoscenarioserver

8 stars 1 forks source link

Fix "task_delta_time" Not Defined Bug #60

Closed mchlswyr closed 3 years ago

mchlswyr commented 3 years ago

Issue

Solution

Testing

replace

gsserver="source /opt/ros/lanelet2/setup.bash --extend && /opt/geoscenarioserver/GSServer.py"

with

gsserver="source /opt/ros/lanelet2/setup.bash --extend && ${HOME}/anm_unreal_sim/submodules/geoscenarioserver/GSServer.py"
mchlswyr commented 3 years ago
  • This change was made here as a fix for Issue #56
  • But, I don't think the EVALUATION_MODE check is necessary for the fix; just the part that checks if self.last_plan was set is needed for the fix

@rodrigoqueiroz Is this correct?

rodrigoqueiroz commented 3 years ago
  • This change was made here as a fix for Issue #56
  • But, I don't think the EVALUATION_MODE check is necessary for the fix; just the part that checks if self.last_plan was set is needed for the fix

@rodrigoqueiroz Is this correct?

No. If not in evaluation mode, it should always block and use the target time. That workaround (non blocking) should only be used in evaluation mode

 if EVALUATION_MODE:
                (...)

else:
    sync_planner.end_task() #blocks if < target
    task_delta_time = sync_planner.get_task_time() %<<<<<<<<<<<<<<this is the missing line causing the bug