MCPcopy Create free account

hub / github.com/AgibotTech/agibot_x1_train / functions

Functions205 in github.com/AgibotTech/agibot_x1_train

↓ 1 callersMethodrandomized_terrain
(self)
humanoid/utils/terrain.py:92
↓ 1 callersMethodregister
(self, name: str, task_class: VecEnv, env_cfg: LeggedRobotCfg, train_cfg: LeggedRobotCfgPPO)
humanoid/utils/task_registry.py:51
↓ 1 callersMethodreset_idx
Reset selected robots
humanoid/envs/base/base_task.py:141
↓ 1 callersFunctionrun_mujoco
Run the Mujoco simulation using the provided policy and configuration. Args: policy: The policy used for controlling the simulation.
humanoid/scripts/sim2sim.py:136
↓ 1 callersMethodselected_terrain
(self)
humanoid/utils/terrain.py:112
↓ 1 callersFunctionset_seed
(seed)
humanoid/utils/helpers.py:72
↓ 1 callersMethodstep
Apply actions, simulate, call self.post_physics_step() Args: actions (torch.Tensor): Tensor of shape (num_envs, num_actions_per_
humanoid/envs/base/legged_robot.py:111
↓ 1 callersMethodstep
(self, actions)
humanoid/envs/base/base_task.py:152
↓ 1 callersFunctiontrain
(args)
humanoid/scripts/train.py:37
↓ 1 callersMethodupdate
(self)
humanoid/algo/ppo/dh_ppo.py:126
↓ 1 callersMethodupdate_distribution
(self, observations)
humanoid/algo/ppo/actor_critic_dh.py:160
Method__del__
(self)
humanoid/utils/logger.py:747
Method__init__
(self, dt)
humanoid/utils/logger.py:39
Method__init__
(self)
humanoid/utils/task_registry.py:46
Method__init__
(self, cfg: LeggedRobotCfg.terrain, num_robots)
humanoid/utils/terrain.py:42
Method__init__
(self, cfg: LeggedRobotCfg, sim_params, physics_engine, sim_device, headless)
humanoid/envs/x1/x1_dh_stand_env.py:113
Method__init__
Initializes all member classes recursively. Ignores all namse starting with '__' (buit-in methods).
humanoid/envs/base/base_config.py:36
Method__init__
Parses the provided config file, calls create_sim() (which creates, simulation, terrain and environments), initilizes pytorch
humanoid/envs/base/legged_robot.py:85
Method__init__
(self, cfg, sim_params, physics_engine, sim_device, headless)
humanoid/envs/base/base_task.py:44
Method__init__
(self, actor, long_history, state_estimator, num_short_obs, in_channels, num_proprio_obs)
humanoid/scripts/export_policy_dh.py:47
Method__init__
(self, actor_critic, num_learning_epochs=1, num_mini_batche
humanoid/algo/ppo/dh_ppo.py:42
Method__init__
(self, env: VecEnv, train_cfg, log_dir=None, device="cpu")
humanoid/algo/ppo/dh_on_policy_runner.py:47
Method__init__
(self, num_short_obs, num_proprio_obs, num_critic_obs,
humanoid/algo/ppo/actor_critic_dh.py:38
Method__init__
(self, num_envs, num_transitions_per_env, obs_shape, privileged_obs_shape, actions_shape, num_single_obs=None,
humanoid/algo/ppo/rollout_storage.py:53
Method_init_buffers
Initialize torch tensors which will contain simulation states and processed quantities
humanoid/envs/x1/x1_dh_stand_env.py:559
Method_plot
(self)
humanoid/utils/logger.py:91
Method_plot_position
(self)
humanoid/utils/logger.py:131
Method_plot_position1
(self)
humanoid/utils/logger.py:177
Method_plot_tn
(self)
humanoid/utils/logger.py:516
Method_plot_tn1
(self)
humanoid/utils/logger.py:587
Method_plot_tn_rms
(self)
humanoid/utils/logger.py:375
Method_plot_tn_rms1
(self)
humanoid/utils/logger.py:446
Method_plot_torque
(self)
humanoid/utils/logger.py:223
Method_plot_torque1
(self)
humanoid/utils/logger.py:258
Method_plot_torque_vel
(self)
humanoid/utils/logger.py:657
Method_plot_torque_vel1
(self)
humanoid/utils/logger.py:698
Method_plot_vel
(self)
humanoid/utils/logger.py:293
Method_plot_vel1
(self)
humanoid/utils/logger.py:334
Method_post_physics_step_callback
Callback called before computing terminations, rewards, and observations Default behaviour: Compute ang vel command based on target and h
humanoid/envs/x1/x1_dh_stand_env.py:248
Method_refresh_actor_rigid_body_props
Refresh the rigid body properties of the actor in the given environments, i.e. set the payload_mass to the desired values.
humanoid/envs/base/legged_robot.py:594
Method_refresh_actor_rigid_shape_props
Refresh the rigid shape properties of the actor in the given environments, i.e. set the friction and restitution coefficients to the desi
humanoid/envs/base/legged_robot.py:582
Method_resample_rotate_command
(self, env_ids)
humanoid/envs/x1/x1_dh_stand_env.py:231
Method_resample_stand_command
(self, env_ids)
humanoid/envs/x1/x1_dh_stand_env.py:207
Method_resample_walk_lateral_command
(self, env_ids)
humanoid/envs/x1/x1_dh_stand_env.py:223
Method_resample_walk_omnidirectional_command
(self,env_ids)
humanoid/envs/x1/x1_dh_stand_env.py:239
Method_resample_walk_sagittal_command
(self, env_ids)
humanoid/envs/x1/x1_dh_stand_env.py:215
Method_reward_action_smoothness
Encourages smoothness in the robot's actions by penalizing large differences between consecutive actions. This is important for achie
humanoid/envs/x1/x1_dh_stand_env.py:858
Method_reward_ankle_torques
Penalizes the use of high torques in the robot's joints. Encourages efficient movement by minimizing the necessary force exerted by t
humanoid/envs/x1/x1_dh_stand_env.py:822
Method_reward_base_acc
Computes the reward based on the base's acceleration. Penalizes high accelerations of the robot's base, encouraging smoother motion.
humanoid/envs/x1/x1_dh_stand_env.py:686
Method_reward_base_height
Calculates the reward based on the robot's base height. Penalizes deviation from a target base height. The reward is computed based o
humanoid/envs/x1/x1_dh_stand_env.py:674
Method_reward_collision
Penalizes collisions of the robot with the environment, specifically focusing on selected body parts. This encourages the robot to av
humanoid/envs/x1/x1_dh_stand_env.py:851
Method_reward_default_joint_pos
Calculates the reward for keeping joint positions close to default positions, with a focus on penalizing deviation in yaw and roll d
humanoid/envs/x1/x1_dh_stand_env.py:662
Method_reward_dof_acc
Penalizes high accelerations at the robot's degrees of freedom (DOF). This is important for ensuring smooth and stable motion, reduci
humanoid/envs/x1/x1_dh_stand_env.py:844
Method_reward_dof_pos_limits
(self)
humanoid/envs/x1/x1_dh_stand_env.py:887
Method_reward_dof_torque_limits
(self)
humanoid/envs/x1/x1_dh_stand_env.py:898
Method_reward_dof_vel
Penalizes high velocities at the degrees of freedom (DOF) of the robot. This encourages smoother and more controlled movements.
humanoid/envs/x1/x1_dh_stand_env.py:837
Method_reward_dof_vel_limits
(self)
humanoid/envs/x1/x1_dh_stand_env.py:893
Method_reward_feet_air_time
Calculates the reward for feet air time, promoting longer steps. This is achieved by checking the first contact with the ground after
humanoid/envs/x1/x1_dh_stand_env.py:618
Method_reward_feet_clearance
Calculates reward based on the clearance of the swing leg from the ground during movement. Encourages appropriate lift of the feet du
humanoid/envs/x1/x1_dh_stand_env.py:759
Method_reward_feet_contact_forces
Calculates the reward for keeping contact forces within a specified range. Penalizes high contact forces on the feet.
humanoid/envs/x1/x1_dh_stand_env.py:655
Method_reward_feet_contact_number
Calculates a reward based on the number of feet contacts aligning with the gait phase. Rewards or penalizes depending on whether the
humanoid/envs/x1/x1_dh_stand_env.py:635
Method_reward_feet_distance
Calculates the reward based on the distance between the feet. Penilize feet get close to each other or too far away.
humanoid/envs/x1/x1_dh_stand_env.py:582
Method_reward_feet_rotation
(self)
humanoid/envs/x1/x1_dh_stand_env.py:830
Method_reward_feet_stumble
(self)
humanoid/envs/x1/x1_dh_stand_env.py:882
Method_reward_foot_slip
Calculates the reward for minimizing foot slip. The reward is based on the contact forces and the speed of the feet. A contact thres
humanoid/envs/x1/x1_dh_stand_env.py:606
Method_reward_knee_distance
Calculates the reward based on the distance between the knee of the humanoid.
humanoid/envs/x1/x1_dh_stand_env.py:594
Method_reward_low_speed
Rewards or penalizes the robot based on its speed relative to the commanded speed. This function checks if the robot is moving too s
humanoid/envs/x1/x1_dh_stand_env.py:782
Method_reward_orientation
Calculates the reward for maintaining a flat base orientation. It penalizes deviation from the desired base orientation using the ba
humanoid/envs/x1/x1_dh_stand_env.py:646
Method_reward_ref_joint_pos
Calculates the reward based on the difference between the current joint positions and the target joint positions.
humanoid/envs/x1/x1_dh_stand_env.py:569
Method_reward_stand_still
(self)
humanoid/envs/x1/x1_dh_stand_env.py:874
Method_reward_torques
Penalizes the use of high torques in the robot's joints. Encourages efficient movement by minimizing the necessary force exerted by t
humanoid/envs/x1/x1_dh_stand_env.py:815
Method_reward_track_vel_hard
Calculates a reward for accurately tracking both linear and angular velocity commands. Penalizes deviations from specified linear and
humanoid/envs/x1/x1_dh_stand_env.py:708
Method_reward_tracking_ang_vel
Tracks angular velocity commands for yaw rotation. Computes a reward based on how closely the robot's angular velocity matches the co
humanoid/envs/x1/x1_dh_stand_env.py:743
Method_reward_tracking_lin_vel
Tracks linear velocity commands along the xy axes. Calculates a reward based on how closely the robot's linear velocity matches the
humanoid/envs/x1/x1_dh_stand_env.py:727
Method_reward_vel_mismatch_exp
Computes a reward based on the mismatch in the robot's linear and angular velocities. Encourages the robot to maintain a stable velo
humanoid/envs/x1/x1_dh_stand_env.py:696
Methodact
(self, observations, **kwargs)
humanoid/algo/ppo/actor_critic_dh.py:164
Methodact_inference
(self, observations)
humanoid/algo/ppo/actor_critic_dh.py:175
Methodaction_mean
(self)
humanoid/algo/ppo/actor_critic_dh.py:149
Methodaction_std
(self)
humanoid/algo/ppo/actor_critic_dh.py:153
Methodclear
(self)
humanoid/algo/ppo/rollout_storage.py:50
Methodcompute_returns
(self, last_values, gamma, lam)
humanoid/algo/ppo/rollout_storage.py:128
Methodcreate_sim
Creates simulation, terrain and evironments
humanoid/envs/x1/x1_dh_stand_env.py:307
Methodentropy
(self)
humanoid/algo/ppo/actor_critic_dh.py:157
Methodforward
(self, observations)
humanoid/scripts/export_policy_dh.py:56
Methodforward
(self)
humanoid/algo/ppo/actor_critic_dh.py:145
Methodget_inference_critic
(self, device=None)
humanoid/algo/ppo/dh_on_policy_runner.py:316
Methodget_observations
(self)
humanoid/envs/base/base_task.py:132
Methodget_privileged_observations
(self)
humanoid/envs/base/base_task.py:135
Methodget_rma_observations
(self)
humanoid/envs/base/base_task.py:138
Methodget_statistics
(self)
humanoid/algo/ppo/rollout_storage.py:144
Functionhandle_joystick_input
()
humanoid/scripts/play.py:68
Functionhandle_joystick_input
()
humanoid/scripts/sim2sim.py:64
Methodinit_weights
(sequential, scales)
humanoid/algo/ppo/actor_critic_dh.py:138
Methodprint_rewards
(self)
humanoid/utils/logger.py:740
Methodrandomize_rigid_props
(self,env_ids)
humanoid/envs/base/legged_robot.py:577
Methodreset
(self)
humanoid/utils/logger.py:59
Methodreset
Reset all robots
humanoid/envs/base/legged_robot.py:157
Methodreset
Reset all robots
humanoid/envs/base/base_task.py:145
Methodreset
(self, env_ids: Union[list, torch.Tensor])
humanoid/algo/vec_env.py:56
Methodreset_idx
Reset some environments. Calls self._reset_dofs(env_ids), self._reset_root_states(env_ids), and self._resample_commands(env_ids)
humanoid/envs/x1/x1_dh_stand_env.py:477
← previousnext →101–200 of 205, ranked by callers