@@ -44,7 +44,7 @@ function youbot_waypoint(;
4444 return YoubotWaypoint {T,horizon} (mechanism, storage)
4545end
4646
47- function state_map (:: YoubotWaypoint , state)
47+ function DojoEnvironments . state_map (:: YoubotWaypoint , state)
4848 xy = state[1 : 2 ] # minimal coordinates are rotated for youbot
4949 vxy = state[4 : 5 ] # minimal coordinates are rotated for youbot
5050 xy_minimal = Dojo. vector_rotate ([xy;0 ],Dojo. RotZ (- pi / 2 ))[1 : 2 ]
@@ -57,7 +57,7 @@ function state_map(::YoubotWaypoint, state)
5757 return state
5858end
5959
60- function input_map (environment:: YoubotWaypoint , input:: AbstractVector )
60+ function DojoEnvironments . input_map (environment:: YoubotWaypoint , input:: AbstractVector )
6161 # Wheels are only for visualization and not actuated
6262 # so the wheel input must be mapped to the base
6363 l = 0.456
@@ -122,7 +122,7 @@ function Dojo.simulate!(environment::YoubotWaypoint{T,N}, controller! = (environ
122122 simulate! (environment. mechanism, 1 : N, environment. storage, controller_wrapper!; kwargs... )
123123end
124124
125- function get_state (environment:: YoubotWaypoint )
125+ function DojoEnvironments . get_state (environment:: YoubotWaypoint )
126126 state = get_minimal_state (environment. mechanism)
127127 xy_minimal = state[1 : 2 ] # minimal coordinates are rotated for youbot
128128 vxy_minimal = state[4 : 5 ] # minimal coordinates are rotated for youbot
0 commit comments