Skip to content
Snippets Groups Projects
Commit 7f63d628 authored by aastorg2's avatar aastorg2
Browse files

adding correct V function

parent 3a8478bb
No related branches found
No related tags found
No related merge requests found
......@@ -79,8 +79,8 @@ class DTreeAgBotStanleyGurobiTeacher(DTreeGurobiTeacherBase):
state_dim=3, perc_dim=2, ctrl_dim=1, norm_ord=norm_ord)
def is_positive_example(self, ex) -> bool:
def v(cte, psi) -> float:
return np.linalg.norm([cte, psi], ord=float(self._norm_ord))
def v(ctd, psi) -> float:
return abs(psi + np.arctan( (K_P*ctd) / FORWARD_VEL))
def spec(x, y, theta, cte, psi) -> bool:
m_star = sensor
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment