A class that predict future trajectories based on input features Args: feature_dim (int): dimension of the input feature state_dim (int): dimension of the output trajectory at each step num_steps (int): (optional) number of future state to predict
(
self,
feature_dim: int,
state_dim: int = 3,
num_steps: int = None,
dynamics_type: Union[str, dynamics.DynType] = None,
dynamics_kwargs: dict = None,
step_time: float = None,
EC_feature_dim = 64,
network_kwargs: dict = None,
Gaussian_var = False,
)
| 1304 | |
| 1305 | class MLPECTrajectoryDecoder(TrajectoryDecoder): |
| 1306 | def __init__( |
| 1307 | self, |
| 1308 | feature_dim: int, |
| 1309 | state_dim: int = 3, |
| 1310 | num_steps: int = None, |
| 1311 | dynamics_type: Union[str, dynamics.DynType] = None, |
| 1312 | dynamics_kwargs: dict = None, |
| 1313 | step_time: float = None, |
| 1314 | EC_feature_dim = 64, |
| 1315 | network_kwargs: dict = None, |
| 1316 | Gaussian_var = False, |
| 1317 | |
| 1318 | ): |
| 1319 | """ |
| 1320 | A class that predict future trajectories based on input features |
| 1321 | Args: |
| 1322 | feature_dim (int): dimension of the input feature |
| 1323 | state_dim (int): dimension of the output trajectory at each step |
| 1324 | num_steps (int): (optional) number of future state to predict |
| 1325 | dynamics_type (str, dynamics.DynType): (optional) if specified, the network predicts action |
| 1326 | for the dynamics model instead of future states. The actions are then used to predict |
| 1327 | the future trajectories. |
| 1328 | step_time (float): time between steps. required for using dynamics models |
| 1329 | network_kwargs (dict): keyword args for the decoder networks |
| 1330 | Gaussian_var (bool): whether output the variance of the predicted trajectory |
| 1331 | """ |
| 1332 | super(TrajectoryDecoder, self).__init__() |
| 1333 | self.feature_dim = feature_dim |
| 1334 | self.state_dim = state_dim |
| 1335 | self.num_steps = num_steps |
| 1336 | self.step_time = step_time |
| 1337 | self.EC_feature_dim = EC_feature_dim |
| 1338 | self._network_kwargs = network_kwargs |
| 1339 | self._dynamics_type = dynamics_type |
| 1340 | self._dynamics_kwargs = dynamics_kwargs |
| 1341 | self.Gaussian_var = Gaussian_var |
| 1342 | self._create_dynamics() |
| 1343 | self._create_networks() |
| 1344 | |
| 1345 | def _create_networks(self): |
| 1346 | net_kwargs = dict() if self._network_kwargs is None else dict(self._network_kwargs) |
nothing calls this directly
no test coverage detected