time_to_process_order and estimated_earliest_starting_time is defined as follows
number function time_to_process_order(Complexity complexity) =
if (complexity == C0)
120
else if (complexity == C1)
180
else if (complexity == C2)
240
else if (complexity == C3)
300
else
1020 // A full game lasts 17min = 1020s
number function estimated_earliest_starting_time(number order_id) = (order_delivery_period_begin(order_id) - time_to_process_order(order_complexity(order_id))) + 60
If the following test is done with the unknown variable id
test(game_time().sec > estimated_earliest_starting_time(id));
the error message is:
Parsing /home/praktikum/labhlap2/rapha/fawkes-robotino-labhlap2019/src/gologpp/rcll_production/rcll_production.gpp...
Syntax error at line 44:
test(game_time().sec > estimated_earliest_starting_time(id));
^ Expected: <typed_expression>
15:18:00.785268 FawkesMainThread: Failed to load plugins ros,navgraph,flite,skiller,gologpp, exception follows
15:18:00.785283 FawkesMainThread: [EXCEPTION] Caught std::exception: boost::spirit::qi::expectation_failure
15:18:00.785283 FawkesMainThread: [EXCEPTION] Could not initialize thread 'gologpp_agent' (ThreadList gologpp)
15:18:00.785283 FawkesMainThread: [EXCEPTION] Plugin >>> gologpp <<< could not be initialized, unloading
time_to_process_order and estimated_earliest_starting_time is defined as follows
If the following test is done with the unknown variable
idtest(game_time().sec > estimated_earliest_starting_time(id));the error message is: