AIS-Bonn / TopiCo

Time-optimal Trajectory Generation and Control

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unrecognized function or variable 'zero_O'

pantor opened this issue · comments

Similar to #7, which was closed without solution, I get the following error when running the example script:

Unrecognized function or variable 'zero_O'.

Error in solve_O (line 73)
                t_test = zero_O(P_init,V_init,A_init,P_wayp,V_wayp,A_wayp,V_max,V_min,A_max,A_min,J_max,J_min);

Error in synchronize_trajectory (line 133)
        [t_opt{index_axis,1},J_opt{index_axis,1},solution_opt{index_axis,1}] =
        solve_O(P_init(index_axis),V_init(index_axis),A_init(index_axis),P_wayp(index_axis),V_wayp(index_axis),A_wayp(index_axis),V_max(index_axis),V_min(index_axis),A_max(index_axis),A_min(index_axis),J_max(index_axis),J_min(index_axis));

Error in topico (line 122)
        [t_traj,J_traj,solution_out(:,index_waypoint)] =
        synchronize_trajectory(P_curr_pred,V_curr_pred,A_curr_pred,P_wayp_pred,V_wayp_pred,A_wayp_pred,V_max_pred,V_min_pred,A_max_pred,A_min_pred,J_max,J_min,b_sync_V,b_sync_A,b_sync_J,b_sync_W,b_hard_V_lim,T_catch_up,direction);

Error in example (line 173)
[J_setp_struct,solution_out,T_waypoints,P,V,A,J,t] =
topico(State_start,Waypoints,V_max,V_min,A_max,A_min,J_max,J_min,A_global,b_sync_V,b_sync_A,b_sync_J,b_sync_W,b_rotate,b_hard_V_lim,b_catch_up,direction,ts_rollout);

Is there anything I'm doing wrong here?

All subfolders of the project have to be added to the MATLAB path before running the example. I commited a line that automates this process.