unilab.algos.torch.appo.worker.appo_collector_fn¶
- unilab.algos.torch.appo.worker.appo_collector_fn(stop_event, env_name, rl_cfg, num_envs, steps_per_env, shm_rollout_ring_buffer_name, sync_primitives, obs_dim, action_dim, critic_dim, actor_weight_sync_name, actor_weight_param_shapes, critic_weight_sync_name, critic_weight_param_shapes, metrics_queue, collector_device='cpu', sim_backend='mujoco', env_cfg_override=None, seed=None)[source]¶
Entry point for the APPO collector subprocess.
Creates environment + policy, collects rollouts, writes raw payloads to the IPC ring buffer. Error handling is provided by the
_collector_entry_wrapperinasync_runner.py.- Parameters:
stop_event (
Any)env_name (
str)rl_cfg (
dict)num_envs (
int)steps_per_env (
int)sync_primitives (
tuple)obs_dim (
int)action_dim (
int)critic_dim (
int)actor_weight_sync_name (
str)actor_weight_param_shapes (
dict)critic_weight_sync_name (
str)critic_weight_param_shapes (
dict)metrics_queue (
Any)collector_device (
str)sim_backend (
str)