MCPcopy Create free account

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

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

↓ 5 callersMethodpredict_action_chunk
Predict a chunk of actions given environment observations.
src/lerobot/policies/sac/modeling_sac.py:79
↓ 5 callersMethodpredict_action_chunk
Return a chunk of 20 dummy actions.
tests/async_inference/test_policy_server.py:46
↓ 5 callersMethodread
Builds a 'Read' status packet. Args: scs_id (int): ID of the servo responding. value (int): Desired value to be retur
tests/mocks/mock_feetech.py:246
↓ 5 callersFunctionsanity_check_bimanual_piper_pair
Ensure bimanual PiPER configs are not mixed between PiPER and PiPER-X variants.
src/lerobot/utils/control_utils.py:399
↓ 5 callersFunctionsave_annotations_to_dataset
Save annotations to LeRobot dataset parquet format.
src/lerobot/data_processing/sarm_annotations/subtask_annotation.py:745
↓ 5 callersFunctionsave_checkpoint
This function creates the following directory structure: 005000/ # training step at checkpoint ├── pretrained_model/ │ ├── config.jso
src/lerobot/utils/train_utils.py:65
↓ 5 callersMethodset_zero_position
Set current position as zero for selected motors.
src/lerobot/motors/damiao/damiao.py:334
↓ 5 callersMethodstart
Start the robot client and connect to the policy server
src/lerobot/async_inference/robot_client.py:145
↓ 5 callersFunctionstate_dims
()
tests/utils/test_replay_buffer.py:29
↓ 5 callersMethodsync_read
Builds a "Sync_Read" broadcast instruction. The parameters for Sync Read are: param[0] = start_address par
tests/mocks/mock_feetech.py:141
↓ 5 callersMethodto_lerobot_dataset
Converts all transitions in this ReplayBuffer into a single LeRobotDataset object.
src/lerobot/rl/buffer.py:509
↓ 5 callersMethodtransform_features
Applies feature transformations from all steps sequentially. This method propagates a feature description dictionary through each step's
src/lerobot/processor/pipeline.py:1317
↓ 5 callersMethodtransform_features
Transforms feature keys from the Gym standard to the LeRobot standard. This method standardizes the feature dictionary by renaming k
src/lerobot/processor/observation_processor.py:131
↓ 5 callersMethodunregister
Removes a processor step from the registry. Args: name: The name of the step to unregister.
src/lerobot/processor/pipeline.py:124
↓ 5 callersMethodvalidate
(self)
src/lerobot/configs/value.py:76
↓ 5 callersMethodvalidate_features
(self)
src/lerobot/policies/sac/configuration_sac.py:217
↓ 4 callersMethodDisableArm
(self, motor_num)
tests/test_piper_teleop.py:148
↓ 4 callersMethodDisconnectPort
(self, thread_timeout=0.1)
tests/test_piper_teleop.py:131
↓ 4 callersMethodInit
Initialize the publisher (no-op for ZMQ).
src/lerobot/robots/unitree_g1/unitree_sdk2_socket.py:137
↓ 4 callersMethodStreamParameters
(self, request, context)
src/lerobot/rl/learner_service.py:53
↓ 4 callersMethod__init__
( self, in_features: int, hidden_features: int | None = None, out_features: in
src/lerobot/policies/xvla/soft_transformer.py:54
↓ 4 callersMethod__init__
(self, num_categories, input_dim, hidden_dim, output_dim)
src/lerobot/policies/groot/action_head/flow_matching_action_head.py:57
↓ 4 callersMethod__init__
( self, num_attention_heads: int = 8, attention_head_dim: int = 64, output_dim
src/lerobot/policies/groot/action_head/cross_attention_dit.py:191
↓ 4 callersMethod_add_figure_legend
Add a legend outside the plot area on the right side. Args: fig: Matplotlib figure to add legend to axs: Array of axe
examples/rtc/eval_dataset.py:747
↓ 4 callersMethod_add_leading_ones
(self, weights, start, total)
src/lerobot/policies/rtc/modeling_rtc.py:290
↓ 4 callersMethod_add_trailing_zeros
(self, weights, total, end)
src/lerobot/policies/rtc/modeling_rtc.py:281
↓ 4 callersFunction_build_episode_length_histogram
(lengths: list[float], bins: int = 20)
src/lerobot/scripts/lerobot_dataset_report.py:91
↓ 4 callersFunction_create_action_features
()
tests/processor/test_normalize_processor.py:492
↓ 4 callersMethod_create_figure
(self, title)
examples/rtc/eval_dataset.py:736
↓ 4 callersFunction_create_full_features
()
tests/processor/test_normalize_processor.py:614
↓ 4 callersFunction_create_full_norm_map
()
tests/processor/test_normalize_processor.py:622
↓ 4 callersFunction_create_observation_features
()
tests/processor/test_normalize_processor.py:101
↓ 4 callersFunction_create_observation_norm_map
()
tests/processor/test_normalize_processor.py:108
↓ 4 callersMethod_enqueue_observation
Enqueue an observation if it must go through processing, otherwise skip it. Observations not in queue are never run through the policy network
src/lerobot/async_inference/policy_server.py:288
↓ 4 callersMethod_get_motors_list
(self, motors: NameOrID | Sequence[NameOrID] | None)
src/lerobot/motors/motors_bus.py:418
↓ 4 callersMethod_get_observation
Get current robot observation including joint positions and camera images.
src/lerobot/rl/gym_manipulator.py:167
↓ 4 callersMethod_is_processor_config
Check if config follows DataProcessorPipeline format. This method validates the processor configuration structure: **Required Struct
src/lerobot/processor/pipeline.py:1100
↓ 4 callersMethod_linweights
(self, start, end, total)
src/lerobot/policies/rtc/modeling_rtc.py:271
↓ 4 callersMethod_obs_sanity_checks
Check if the observation is valid to be processed by the policy
src/lerobot/async_inference/policy_server.py:270
↓ 4 callersMethod_pad_to_model_dim
If last dim is REAL_DIM (12), pad zeros to reach dim_action (20).
src/lerobot/policies/xvla/action_hub.py:468
↓ 4 callersMethod_prepare_attention_masks_4d
Helper method to prepare 4D attention masks for transformer.
src/lerobot/policies/pi0_fast/modeling_pi0_fast.py:347
↓ 4 callersMethod_read_raw_action
(self)
src/lerobot/teleoperators/piper_leader/piper_leader.py:322
↓ 4 callersMethod_read_raw_observation
(self)
src/lerobot/robots/piper_follower/piper_follower.py:207
↓ 4 callersMethod_rescale_axes
Rescale axes to show all data with proper margins. Args: axes: Array of matplotlib axes to rescale
examples/rtc/eval_dataset.py:908
↓ 4 callersFunction_safe_ratio
(numerator: int, denominator: int)
src/lerobot/scripts/lerobot_dataset_report.py:74
↓ 4 callersMethod_save_figure
(self, fig, path)
examples/rtc/eval_dataset.py:779
↓ 4 callersMethod_send_simple_command
Helper to send simple 8-byte commands (Enable, Disable, Zero).
src/lerobot/motors/damiao/damiao.py:278
↓ 4 callersFunction_smooth_1d
Savitzky-Golay smoothing for 1-D array. Use window=1 to disable.
src/lerobot/scripts/value_infer_viz.py:15
↓ 4 callersFunction_split_into_byte_chunks
(value: int, length: int)
src/lerobot/motors/feetech/feetech.py:68
↓ 4 callersFunction_split_into_byte_chunks
(value: int, length: int)
src/lerobot/motors/dynamixel/dynamixel.py:85
↓ 4 callersMethod_validate_loaded_config
Validate that a config was loaded and is a valid processor config. This method validates processor config format with intelligent migration d
src/lerobot/processor/pipeline.py:670
↓ 4 callersMethod_validate_overrides_used
Validate that all provided overrides were used. This method ensures user overrides are valid to catch typos and configuration errors:
src/lerobot/processor/pipeline.py:986
↓ 4 callersMethodas_matrix
Convert rotation to 3x3 rotation matrix. Returns: 3x3 rotation matrix
src/lerobot/utils/rotation.py:123
↓ 4 callersFunctionassert_dataset_iteration_works
Test that we can iterate through the entire dataset without errors.
tests/datasets/test_aggregate.py:179
↓ 4 callersFunctionassert_transitions_equal
Helper to assert two transitions are equal.
tests/transport/test_transport_utils.py:513
↓ 4 callersMethodasync_read
Reads the latest available frame data (color) asynchronously. This method retrieves the most recent color frame captured by the back
src/lerobot/cameras/realsense/camera_realsense.py:533
↓ 4 callersMethodbatch_decode
This method forwards all its arguments to LlamaTokenizerFast's [`~PreTrainedTokenizer.batch_decode`]. Please refer to the docstring o
src/lerobot/policies/groot/eagle2_hg_model/processing_eagle2_5_vl.py:430
↓ 4 callersFunctionbuild_inference_frame
Constructs a model-ready observation tensor dict from a raw observation. This utility function orchestrates the process of converting a raw,
src/lerobot/policies/utils.py:141
↓ 4 callersMethodcall
(self)
tests/mocks/mock_serial_patch.py:38
↓ 4 callersFunctionclose_envs
Default: raise if the type is not recognized.
src/lerobot/envs/utils.py:196
↓ 4 callersFunctioncompute_sampler_weights
Compute the sampling weights for the online training dataloader in train.py. Args: offline_dataset: The LeRobotDataset used for offline p
src/lerobot/datasets/online_buffer.py:299
↓ 4 callersFunctionconcatenate_video_files
Concatenate multiple video files into a single video file using pyav. This function takes a list of video input file paths and concatenates
src/lerobot/datasets/video_utils.py:400
↓ 4 callersMethodconnect
Establishes ZMQ sockets with the remote mobile robot
src/lerobot/robots/lekiwi/lekiwi_client.py:117
↓ 4 callersMethodconnect
(self, calibrate: bool = True)
src/lerobot/robots/unitree_g1/unitree_g1.py:182
↓ 4 callersMethodconnect
Connects to the OpenCV camera specified in the configuration. Initializes the OpenCV VideoCapture object, sets desired camera proper
src/lerobot/cameras/opencv/camera_opencv.py:137
↓ 4 callersFunctioncreate_lerobot_dataset_card
Create a `DatasetCard` for a LeRobot dataset. Keyword arguments are used to replace values in the card template. Note: If specified, `license
src/lerobot/datasets/utils.py:947
↓ 4 callersMethoddisable_torque
Disable torque on selected motors.
src/lerobot/motors/damiao/damiao.py:308
↓ 4 callersMethoddraw
(self, surf)
src/lerobot/motors/calibration_gui.py:139
↓ 4 callersMethodembed_language_tokens
(self, tokens: torch.Tensor)
src/lerobot/policies/pi0_fast/modeling_pi0_fast.py:247
↓ 4 callersMethodforward
(self, batch: dict[str, Tensor], reduction: str = "mean")
src/lerobot/values/pistar06/modeling_pistar06.py:716
↓ 4 callersMethodfrom_pretrained
Loads a pipeline from a local directory, single file, or Hugging Face Hub repository. This method implements a simplified loading pipeline wi
src/lerobot/processor/pipeline.py:452
↓ 4 callersMethodgenerate_actions
( self, input_ids: torch.LongTensor, image_input: torch.FloatTensor, image_mas
src/lerobot/policies/xvla/modeling_xvla.py:232
↓ 4 callersMethodgetBaudRate
(self)
src/lerobot/motors/motors_bus.py:200
↓ 4 callersMethodgetRxPacketError
(self, error)
src/lerobot/motors/motors_bus.py:215
↓ 4 callersMethodget_action
(self)
tests/test_piper_teleop.py:821
↓ 4 callersMethodget_angles
(self)
src/lerobot/teleoperators/unitree_g1/exo_serial.py:111
↓ 4 callersMethodget_cached_image_features
Extract and optionally cache image features from observations. This function processes image observations through the vision encoder once and
src/lerobot/policies/sac/modeling_sac.py:564
↓ 4 callersMethodget_config
Returns the serializable configuration of the processor. Returns: A dictionary containing the device and float_dtype set
src/lerobot/processor/device_processor.py:171
↓ 4 callersMethodget_data_file_path
(self, ep_index: int)
src/lerobot/datasets/lerobot_dataset.py:193
↓ 4 callersFunctionget_hf_dataset_size_in_mb
(hf_ds: Dataset)
src/lerobot/datasets/utils.py:95
↓ 4 callersMethodget_iterator
Creates an infinite iterator that yields batches of transitions. Will automatically restart when internal iterator is exhausted.
src/lerobot/rl/buffer.py:306
↓ 4 callersFunctionget_package_version
Get the version of a package if it exists, otherwise return 'N/A'.
src/lerobot/scripts/lerobot_info.py:51
↓ 4 callersFunctionget_parquet_file_size_in_mb
(parquet_path: str | Path)
src/lerobot/datasets/utils.py:84
↓ 4 callersFunctionget_radial_flexion
(flexion: float, abduction: float, splay: float)
src/lerobot/teleoperators/homunculus/joints_translation.py:25
↓ 4 callersFunctionget_step_checkpoint_dir
Returns the checkpoint sub-directory corresponding to the step number.
src/lerobot/utils/train_utils.py:42
↓ 4 callersFunctionget_ulnar_flexion
(flexion: float, abduction: float, splay: float)
src/lerobot/teleoperators/homunculus/joints_translation.py:21
↓ 4 callersFunctioninterpolate_progress
Linearly interpolate values to fill in gaps (robust to NaNs / edge cases).
src/lerobot/policies/sarm/compute_rabc_weights.py:443
↓ 4 callersFunctionis_image_feature
Check if a feature key represents an image feature. Args: key: The feature key to check Returns: True if the key represents
src/lerobot/policies/sac/configuration_sac.py:26
↓ 4 callersFunctionlerobot_train
(args)
tests/test_cli_peft.py:23
↓ 4 callersMethodload_hf_dataset
hf_dataset contains all the observations, states, actions, rewards, etc.
src/lerobot/datasets/lerobot_dataset.py:873
↓ 4 callersFunctionload_optimizer_state
Load optimizer state from disk. Args: optimizer: Either a single optimizer or a dictionary of optimizers. save_dir: Directory to
src/lerobot/optim/optimizers.py:312
↓ 4 callersFunctionmake_optimizer_and_scheduler
Generates the optimizer and scheduler based on configs. Args: cfg (TrainPipelineConfig): The training config that contains optimizer and
src/lerobot/optim/factory.py:25
↓ 4 callersFunctionmove_state_dict_to_device
Recursively move all tensors in a (potentially) nested dict/list/tuple structure to the CPU.
src/lerobot/utils/transition.py:73
↓ 4 callersFunctionorthogonal_init
()
src/lerobot/policies/sac/modeling_sac.py:957
↓ 4 callersMethodp95
Return the 95th percentile latency or None if empty.
src/lerobot/policies/rtc/latency_tracker.py:70
↓ 4 callersFunctionparse_episode_indices
(spec: str, total_episodes: int)
src/lerobot/scripts/lerobot_export_boundary_frames.py:107
↓ 4 callersMethodpi
Samples an action from the learned policy. The policy can also have added (truncated) Gaussian noise injected for encouraging exploration whe
src/lerobot/policies/tdmpc/modeling_tdmpc.py:635
↓ 4 callersMethodping
Builds a 'Ping' status packet. https://emanual.robotis.com/docs/en/dxl/protocol2/#ping-0x01 Args: dxl_id (int):
tests/mocks/mock_dynamixel.py:373
↓ 4 callersFunctionprocess_single_episode
Process a single episode annotation.
src/lerobot/data_processing/sarm_annotations/subtask_annotation.py:882
↓ 4 callersMethodpush_model_to_hub
( self, cfg: TrainPipelineConfig, peft_model=None, )
src/lerobot/policies/pretrained.py:207
← previousnext →401–500 of 5,633, ranked by callers