MCPcopy Create free account

hub / github.com/MINT-SJTU/Evo-RL / functions

Functions5,633 in github.com/MINT-SJTU/Evo-RL

↓ 14 callersFunctionmake_new_buffer
( write_dir: str | None = None, delta_timestamps: dict[str, list[float]] | None = None )
tests/datasets/test_online_buffer.py:32
↓ 14 callersMethodreset
Reset environment to initial state. Args: seed: Random seed for reproducibility. options: Additional reset options.
src/lerobot/rl/gym_manipulator.py:222
↓ 14 callersMethodupdate
Update controller state - call this once per frame.
src/lerobot/teleoperators/gamepad/gamepad_utils.py:55
↓ 14 callersMethodupdate_chunk_settings
Update chunk and file size settings after dataset creation. This allows users to customize storage organization without modifying the constru
src/lerobot/datasets/lerobot_dataset.py:440
↓ 13 callersMethodadd_data
Add new data to the buffer, which could potentially mean shifting old data out. The new data should contain all the frames (in order) of any
src/lerobot/datasets/online_buffer.py:167
↓ 13 callersFunctiondelete_episodes
Delete episodes from a LeRobotDataset and create a new dataset. Args: dataset: The source LeRobotDataset. episode_indices: List o
src/lerobot/datasets/dataset_tools.py:81
↓ 13 callersFunctionformat_big_number
(num, precision=0)
src/lerobot/utils/utils.py:186
↓ 13 callersMethodfrom_dict
Create a RobotClientConfig from a dictionary.
src/lerobot/async_inference/configs.py:185
↓ 13 callersMethodgetTxRxResult
(self, result)
src/lerobot/motors/motors_bus.py:214
↓ 13 callersMethodget_vlm_model
(self)
src/lerobot/policies/smolvla/smolvlm_with_expert.py:136
↓ 13 callersFunctionmake_policy_config
Instantiates a policy configuration object based on the policy type. This factory function simplifies the creation of policy configuration o
src/lerobot/policies/factory.py:146
↓ 13 callersFunctionmake_spoof_data_frames
(n_episodes: int, n_frames_per_episode: int)
tests/datasets/test_online_buffer.py:47
↓ 13 callersFunctionreceive_bytes_in_chunks
(iterator, queue: Queue | None, shutdown_event: MpEvent, log_prefix: str = "")
src/lerobot/transport/utils.py:73
↓ 13 callersMethodsample_noise
(self, shape, device)
src/lerobot/policies/pi0/modeling_pi0.py:621
↓ 13 callersMethodsave_image
( self, image: torch.Tensor | np.ndarray | PIL.Image.Image, fpath: Path, compress_level: int = 1 )
src/lerobot/datasets/image_writer.py:172
↓ 13 callersMethodstop
(self)
src/lerobot/utils/utils.py:353
↓ 13 callersFunctionupdate_chunk_file_indices
(chunk_idx: int, file_idx: int, chunks_size: int)
src/lerobot/datasets/utils.py:99
↓ 12 callersFunction_obj_for
Find the first object logged under a given key.
tests/utils/test_visualization_utils.py:75
↓ 12 callersFunctionassert_contract_is_typed
(features: dict[PipelineFeatureType, dict[str, PolicyFeature]])
tests/conftest.py:85
↓ 12 callersMethodbuild
(cls, scs_id: int, params: list[int], length: int, *args, **kwargs)
tests/mocks/mock_feetech.py:31
↓ 12 callersMethoddisconnect
(self)
tests/mocks/mock_robot.py:132
↓ 12 callersFunctionget_address
(model_ctrl_table: dict[str, dict], model: str, data_name: str)
src/lerobot/motors/motors_bus.py:129
↓ 12 callersMethodget_chunk_settings
Get current chunk and file size settings. Returns: Dict containing chunks_size, data_files_size_in_mb, and video_files_size_in_mb
src/lerobot/datasets/lerobot_dataset.py:475
↓ 12 callersFunctionget_last_item_from_queue
(queue: Queue, block=True, timeout: float = 0.1)
src/lerobot/rl/queue.py:25
↓ 12 callersFunctionmake_act_pre_post_processors
Creates the pre- and post-processing pipelines for the ACT policy. The pre-processing pipeline handles normalization, batching, and device placem
src/lerobot/policies/act/processor_act.py:34
↓ 12 callersFunctionmake_policy
Instantiate a policy model. This factory function handles the logic of creating a policy, which requires determining the input and outpu
src/lerobot/policies/factory.py:421
↓ 12 callersFunctionmake_sac_pre_post_processors
Constructs pre-processor and post-processor pipelines for the SAC policy. The pre-processing pipeline prepares input data for the model by:
src/lerobot/policies/sac/processor_sac.py:36
↓ 12 callersFunctionmake_tdmpc_pre_post_processors
Constructs pre-processor and post-processor pipelines for the TDMPC policy. The pre-processing pipeline prepares input data for the model by
src/lerobot/policies/tdmpc/processor_tdmpc.py:35
↓ 12 callersFunctionmake_vqbet_pre_post_processors
Constructs pre-processor and post-processor pipelines for the VQ-BeT policy. The pre-processing pipeline prepares input data for the model b
src/lerobot/policies/vqbet/processor_vqbet.py:36
↓ 12 callersMethodpercentile
Return the p-th percentile of recorded times.
src/lerobot/utils/utils.py:397
↓ 12 callersMethodreset
(self, seed=None, **kwargs)
src/lerobot/envs/libero.py:296
↓ 12 callersMethodrun
(self)
src/lerobot/cameras/zmq/image_server.py:73
↓ 12 callersMethodsend_action
(self, action: Tensor)
examples/rtc/eval_with_real_robot.py:119
↓ 12 callersFunctionsplit_dataset
Split a LeRobotDataset into multiple smaller datasets. Args: dataset: The source LeRobotDataset to split. splits: Either a dict m
src/lerobot/datasets/dataset_tools.py:144
↓ 12 callersFunctiont
(key)
website/app.js:321
↓ 11 callersMethod__init__
( self, input_dim: int, hidden_dims: list[int], activations: Callable[[torch.T
src/lerobot/policies/sac/modeling_sac.py:643
↓ 11 callersMethodaction
(self, action: RobotAction)
src/lerobot/processor/policy_robot_bridge.py:34
↓ 11 callersMethodasync_read
Return the most recent new frame. This method retrieves the latest frame captured by the background thread. If a new frame is already
src/lerobot/cameras/camera.py:122
↓ 11 callersMethodbuild_read_stub
( self, address: int, length: int, scs_id: int, value: int, re
tests/mocks/mock_feetech.py:332
↓ 11 callersFunctioncompute_tau
Compute τ_t = (t - s_k) / (e_k - s_k) ∈ [0, 1]. Returns 1.0 for zero-duration subtasks.
src/lerobot/policies/sarm/sarm_utils.py:195
↓ 11 callersMethodconfigure_motors
Write implementation-specific recommended settings to every motor. Typical changes include shortening the return delay, increasing ac
src/lerobot/motors/motors_bus.py:625
↓ 11 callersFunctioncreate_default_config
Create a default ACT configuration for testing.
tests/processor/test_act_processor.py:39
↓ 11 callersFunctioncreate_default_config
Create a default VQBeT configuration for testing.
tests/processor/test_vqbet_processor.py:39
↓ 11 callersFunctioncreate_default_config
Create a default SAC configuration for testing.
tests/processor/test_sac_processor.py:39
↓ 11 callersFunctioncreate_default_config
Create a default TDMPC configuration for testing.
tests/processor/test_tdmpc_processor.py:39
↓ 11 callersMethodforward
(self, x: torch.Tensor)
src/lerobot/policies/sac/modeling_sac.py:675
↓ 11 callersMethodget_observation
(self)
examples/rtc/eval_with_real_robot.py:115
↓ 11 callersMethodget_subtask
Extracts the subtask from the transition's complementary data. Args: transition: The environment transition. Re
src/lerobot/processor/tokenizer_processor.py:144
↓ 11 callersFunctioninit_rerun
Initializes the Rerun SDK for visualizing the control loop. Args: session_name: Name of the Rerun session. ip: Optional IP f
src/lerobot/utils/visualization_utils.py:26
↓ 11 callersFunctionmake_cameras_from_configs
(camera_configs: dict[str, CameraConfig])
src/lerobot/cameras/utils.py:25
↓ 11 callersFunctionmake_classifier_processor
Constructs pre-processor and post-processor pipelines for the reward classifier. The pre-processing pipeline prepares input data for the cla
src/lerobot/policies/sac/reward_model/processor_classifier.py:32
↓ 11 callersFunctionmake_diffusion_pre_post_processors
Constructs pre-processor and post-processor pipelines for a diffusion policy. The pre-processing pipeline prepares the input data for the mo
src/lerobot/policies/diffusion/processor_diffusion.py:35
↓ 11 callersFunctionmodify_tasks
Modify tasks in a LeRobotDataset. This function allows you to either: 1. Set a single task for the entire dataset (using `new_task`) 2. S
src/lerobot/datasets/dataset_tools.py:1428
↓ 11 callersMethodplot_waypoints
Plot trajectories across multiple dimensions. This function plots a tensor's values across time for multiple dimensions, with each di
src/lerobot/policies/rtc/debug_visualizer.py:30
↓ 11 callersFunctionuse_threads
(cfg: TrainRLServerPipelineConfig)
src/lerobot/rl/actor.py:733
↓ 11 callersMethodwait_until_done
(self)
src/lerobot/datasets/image_writer.py:180
↓ 11 callersFunctionwrite_info
(info: dict, local_dir: Path)
src/lerobot/datasets/utils.py:284
↓ 10 callersMethod_check_cached_episodes_sufficient
Check if the cached dataset contains all requested episodes and their video files.
src/lerobot/datasets/lerobot_dataset.py:880
↓ 10 callersMethod_get_motors_list
Convert motor specification to list of motor names.
src/lerobot/motors/damiao/damiao.py:816
↓ 10 callersFunction_make_obs
Create a TimedObservation with a given state vector.
tests/async_inference/test_policy_server.py:96
↓ 10 callersMethodbuild_sync_read_stub
( self, address: int, length: int, ids_values: dict[int, int], reply:
tests/mocks/mock_feetech.py:373
↓ 10 callersFunctioncombine_feature_dicts
Merge LeRobot grouped feature dicts. - For 1D numeric specs (dtype not image/video/string) with "names": we merge the names and recompute the sha
src/lerobot/datasets/utils.py:753
↓ 10 callersFunctioncreate_default_config
Create a default Diffusion configuration for testing.
tests/processor/test_diffusion_processor.py:39
↓ 10 callersFunctioncreate_default_config
Create a default Reward Classifier configuration for testing.
tests/processor/test_classifier_processor.py:37
↓ 10 callersFunctioncreate_default_stats
Create default dataset statistics for testing.
tests/processor/test_act_processor.py:56
↓ 10 callersFunctioncreate_default_stats
Create default dataset statistics for testing.
tests/processor/test_vqbet_processor.py:58
↓ 10 callersFunctioncreate_default_stats
Create default dataset statistics for testing.
tests/processor/test_sac_processor.py:56
↓ 10 callersFunctioncreate_default_stats
Create default dataset statistics for testing.
tests/processor/test_tdmpc_processor.py:58
↓ 10 callersFunctioncreate_initial_features
Creates the initial features dict for the dataset from action and observation specs. Args: action: A dictionary of action feature na
src/lerobot/datasets/pipeline_features.py:25
↓ 10 callersMethoddenoise_step
RTC guidance wrapper around an existing denoiser. This method wraps an original denoising callable that only takes ``x_t`` and return
src/lerobot/policies/rtc/modeling_rtc.py:116
↓ 10 callersMethodforward
(self, x: torch.Tensor)
tests/processor/test_pipeline.py:632
↓ 10 callersMethodget_all_debug_steps
Get all debug steps from tracker. Returns empty list if tracker is disabled or None.
src/lerobot/policies/rtc/modeling_rtc.py:90
↓ 10 callersMethodget_video_file_path
(self, ep_index: int, vid_key: str)
src/lerobot/datasets/lerobot_dataset.py:206
↓ 10 callersFunctionhotswap_stats
Replaces normalization statistics in an existing `PolicyProcessorPipeline` instance. This function creates a deep copy of the provided pipel
src/lerobot/processor/normalize_processor.py:535
↓ 10 callersFunctionimage_array_to_pil_image
(image_array: np.ndarray, range_check: bool = True)
src/lerobot/datasets/image_writer.py:41
↓ 10 callersFunctionmake_annotation
Helper to create SubtaskAnnotation from list of (name, start_sec, end_sec).
tests/policies/test_sarm_subtask_annotations.py:35
↓ 10 callersFunctionmake_env
Makes a gym vector environment according to the config or Hub reference. Args: cfg (EnvConfig | str): Either an `EnvConfig` object descri
src/lerobot/envs/factory.py:102
↓ 10 callersFunctionmake_teleoperator_from_config
(config: TeleoperatorConfig)
src/lerobot/teleoperators/utils.py:36
↓ 10 callersFunctionmake_transform_from_config
(cfg: ImageTransformConfig)
src/lerobot/datasets/transforms.py:218
↓ 10 callersMethodread
Capture and return a single frame from the camera synchronously. This is a blocking call that will wait for the hardware and its SDK.
src/lerobot/cameras/camera.py:111
↓ 10 callersMethodread_latest
Return the most recent frame captured immediately (Peeking). This method is non-blocking and returns whatever is currently in the mem
src/lerobot/cameras/camera.py:153
↓ 10 callersMethodregister_before_step_hook
Registers a function to be called before each step. Args: fn: A callable that accepts the step index and the current transition.
src/lerobot/processor/pipeline.py:1240
↓ 10 callersFunctionremove_feature
Remove features from a LeRobotDataset. Args: dataset: The source LeRobotDataset. feature_names: Name(s) of features to remove. Ca
src/lerobot/datasets/dataset_tools.py:419
↓ 10 callersMethodselect_action
(self, batch)
tests/test_control_robot.py:578
↓ 10 callersMethodstep
Execute one environment step with given action.
src/lerobot/rl/gym_manipulator.py:253
↓ 10 callersMethodsync_write
Write values to multiple motors.
src/lerobot/motors/motors_bus.py:97
↓ 10 callersMethodto_dict
(self)
src/lerobot/configs/train.py:169
↓ 9 callersMethod_call
(self, command: str, *args, **kwargs)
src/lerobot/teleoperators/bi_piper_leader/bi_piper_leader.py:114
↓ 9 callersMethod_get_motor_recv_id
Get motor recv_id from name or ID.
src/lerobot/motors/damiao/damiao.py:847
↓ 9 callersMethod_should_suggest_migration
Check if directory has JSON files but no processor configs. This method implements smart migration detection to avoid false positives:
src/lerobot/processor/pipeline.py:1041
↓ 9 callersFunctionbatch_to_transition
Convert a batch dictionary from a dataset/dataloader into an `EnvTransition`. This function maps recognized keys from a batch to the `EnvTra
src/lerobot/processor/converters.py:328
↓ 9 callersFunctionbuild_acp_raw_batch_hook
(cfg: ACPConfig, seed: int | None)
src/lerobot/rl/acp_hook.py:82
↓ 9 callersMethodclear_episode_buffer
(self, delete_images: bool = True)
src/lerobot/datasets/lerobot_dataset.py:1532
↓ 9 callersMethodconnect
(self)
tests/test_piper_teleop.py:319
↓ 9 callersFunctioncreate_default_stats
Create default dataset statistics for testing.
tests/processor/test_diffusion_processor.py:58
↓ 9 callersFunctioncreate_default_stats
Create default dataset statistics for testing.
tests/processor/test_classifier_processor.py:56
↓ 9 callersFunctiondeserialize_json_into_object
Loads the JSON data from `fpath` and recursively fills `obj` with the corresponding values (strictly matching structure and types). Tuple
src/lerobot/utils/io_utils.py:36
↓ 9 callersMethoddisconnect
(self)
tests/test_piper_teleop.py:324
↓ 9 callersMethoddtype
(self)
src/lerobot/policies/evo1/flow_matching.py:407
↓ 9 callersFunctionflatten_dict
Flatten a nested dictionary by joining keys with a separator. Example: >>> dct = {"a": {"b": 1, "c": {"d": 2}}, "e": 3} >>> print
src/lerobot/datasets/utils.py:155
← previousnext →101–200 of 5,633, ranked by callers