zero7101 commited on
Commit
d8c9744
·
verified ·
1 Parent(s): 505c190

Add files using upload-large-folder tool

Browse files
Files changed (20) hide show
  1. lerobot/dataset/session_20260116_163348/videos/observation.masks.CameraGripper/chunk-001/file-020.mp4 +3 -0
  2. lerobot/dataset/session_20260116_163348/videos/observation.masks.CameraGripper/chunk-001/file-021.mp4 +3 -0
  3. lerobot/dataset/session_20260116_163348/videos/observation.masks.CameraGripper/chunk-001/file-022.mp4 +3 -0
  4. lerobot/dataset/session_20260116_163348/videos/observation.masks.CameraGripper/chunk-001/file-023.mp4 +3 -0
  5. lerobot/dataset/session_20260116_163348/videos/observation.masks.CameraGripper/chunk-001/file-024.mp4 +3 -0
  6. lerobot/dataset/session_20260116_163348/videos/observation.masks.CameraLeft/chunk-001/file-049.mp4 +3 -0
  7. lerobot/dataset/session_20260116_163348/videos/observation.masks.CameraLeft/chunk-001/file-052.mp4 +3 -0
  8. lerobot/dataset/session_20260116_163348/videos/observation.masks.CameraLeft/chunk-002/file-012.mp4 +3 -0
  9. lerobot/dataset/session_20260116_163348/videos/observation.masks.CameraLeft/chunk-002/file-034.mp4 +3 -0
  10. lerobot/dataset/session_20260116_163348/videos/observation.masks.CameraLeft/chunk-002/file-035.mp4 +3 -0
  11. lerobot/media/readme/VLA_architecture.jpg +3 -0
  12. lerobot/media/readme/lerobot-logo-thumbnail.png +3 -0
  13. lerobot/media/readme/robots_control_video.webp +3 -0
  14. lerobot/media/readme/so100_video.webp +3 -0
  15. lerobot/src/lerobot/policies/wall_x/qwen_model/configuration_qwen2_5_vl.py +248 -0
  16. lerobot/src/lerobot/robots/bi_so_follower/bi_so_follower.py +153 -0
  17. lerobot/src/lerobot/robots/bi_so_follower/config_bi_so_follower.py +30 -0
  18. lerobot/src/lerobot/robots/earthrover_mini_plus/config_earthrover_mini_plus.py +35 -0
  19. lerobot/tests/artifacts/policies/xarm_lift_medium_tdmpc_use_policy/output_dict.safetensors +3 -0
  20. lerobot/tests/artifacts/policies/xarm_lift_medium_tdmpc_use_policy/param_stats.safetensors +3 -0
lerobot/dataset/session_20260116_163348/videos/observation.masks.CameraGripper/chunk-001/file-020.mp4 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f97ee50fd917b61638050aa32e188cd2847aa65052562ef5a8bb7c35e90928b8
3
+ size 22601
lerobot/dataset/session_20260116_163348/videos/observation.masks.CameraGripper/chunk-001/file-021.mp4 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7e3b8f659d544eff3826d14b4abcc000e64c5dc15072af5c64d84e5bfc92b06c
3
+ size 16761
lerobot/dataset/session_20260116_163348/videos/observation.masks.CameraGripper/chunk-001/file-022.mp4 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:03bbb95950d7096020873ea5ff067fa1288fc696aaa05e3745a9fde65e66cef2
3
+ size 26693
lerobot/dataset/session_20260116_163348/videos/observation.masks.CameraGripper/chunk-001/file-023.mp4 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0ff57067d31ef4c722407b0b388b104e30126f81d686d3787b1e727c0a6eddc1
3
+ size 14790
lerobot/dataset/session_20260116_163348/videos/observation.masks.CameraGripper/chunk-001/file-024.mp4 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f162fff687593491fe9252b4bd70d6cf2e67a46d7a72c14d9f0dab5ff96906b1
3
+ size 15907
lerobot/dataset/session_20260116_163348/videos/observation.masks.CameraLeft/chunk-001/file-049.mp4 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:56ad38e1b12d6a949cd5749c54aede3351c1e9ef9fc622b4e8c6c91fb3eec654
3
+ size 26060
lerobot/dataset/session_20260116_163348/videos/observation.masks.CameraLeft/chunk-001/file-052.mp4 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:53b34c30f5fade081078f49dc9d9bef8397aa1a84bb96f865f0f82e21d7dd4f4
3
+ size 27485
lerobot/dataset/session_20260116_163348/videos/observation.masks.CameraLeft/chunk-002/file-012.mp4 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7cac02f746a769fbb9c3ed4625675c456ea06abf2f5caddc4228927e3ad67d67
3
+ size 25434
lerobot/dataset/session_20260116_163348/videos/observation.masks.CameraLeft/chunk-002/file-034.mp4 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:997c3d6c7621f46705c129bed3f842f0a06dde20df6f73fc04a104349d150cbb
3
+ size 25760
lerobot/dataset/session_20260116_163348/videos/observation.masks.CameraLeft/chunk-002/file-035.mp4 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c07a4f63ccd2c358717414b165f6fc3bb1b6465465f903530efd4229be0fe883
3
+ size 25160
lerobot/media/readme/VLA_architecture.jpg ADDED

Git LFS Details

  • SHA256: a54f82e318e0a9c0c6bbd1ef099685518f001d5bf3a5f341d6d2090994e7cb43
  • Pointer size: 131 Bytes
  • Size of remote file: 793 kB
lerobot/media/readme/lerobot-logo-thumbnail.png ADDED

Git LFS Details

  • SHA256: 72ee48061c2528eb9f6a1f163622d4805476a52c813bd03f2f32e32d89afd63e
  • Pointer size: 131 Bytes
  • Size of remote file: 164 kB
lerobot/media/readme/robots_control_video.webp ADDED

Git LFS Details

  • SHA256: 977b535598044cefbae8f5e9aef976dd98377e45575f95f3900d99a5d7ba8939
  • Pointer size: 132 Bytes
  • Size of remote file: 2.43 MB
lerobot/media/readme/so100_video.webp ADDED

Git LFS Details

  • SHA256: 11857a0729814afa529571c30ad4acb9f8cf8f4fa743163d462cb31a10f9782b
  • Pointer size: 131 Bytes
  • Size of remote file: 492 kB
lerobot/src/lerobot/policies/wall_x/qwen_model/configuration_qwen2_5_vl.py ADDED
@@ -0,0 +1,248 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from transformers.configuration_utils import PretrainedConfig
2
+ from transformers.modeling_rope_utils import rope_config_validation
3
+
4
+
5
+ class Qwen2_5_VLVisionConfig(PretrainedConfig):
6
+ model_type = "qwen2_5_vl"
7
+ base_config_key = "vision_config"
8
+
9
+ def __init__(
10
+ self,
11
+ depth=32,
12
+ hidden_size=3584,
13
+ hidden_act="silu",
14
+ intermediate_size=3420,
15
+ num_heads=16,
16
+ in_channels=3,
17
+ patch_size=14,
18
+ spatial_merge_size=2,
19
+ temporal_patch_size=2,
20
+ tokens_per_second=4,
21
+ window_size=112,
22
+ out_hidden_size=3584,
23
+ fullatt_block_indexes=[7, 15, 23, 31],
24
+ **kwargs,
25
+ ):
26
+ super().__init__(**kwargs)
27
+
28
+ self.depth = depth
29
+ self.hidden_size = hidden_size
30
+ self.hidden_act = hidden_act
31
+ self.intermediate_size = intermediate_size
32
+ self.num_heads = num_heads
33
+ self.in_channels = in_channels
34
+ self.patch_size = patch_size
35
+ self.spatial_merge_size = spatial_merge_size
36
+ self.temporal_patch_size = temporal_patch_size
37
+ self.tokens_per_second = tokens_per_second
38
+ self.window_size = window_size
39
+ self.fullatt_block_indexes = fullatt_block_indexes
40
+ self.out_hidden_size = out_hidden_size
41
+
42
+
43
+ class Qwen2_5_VLConfig(PretrainedConfig):
44
+ r"""
45
+ This is the configuration class to store the configuration of a [`Qwen2_5_VLModel`]. It is used to instantiate a
46
+ Qwen2-VL model according to the specified arguments, defining the model architecture. Instantiating a configuration
47
+ with the defaults will yield a similar configuration to that of
48
+ Qwen2-VL-7B-Instruct [Qwen/Qwen2-VL-7B-Instruct](https://huggingface.co/Qwen/Qwen2-VL-7B-Instruct).
49
+
50
+ Configuration objects inherit from [`PretrainedConfig`] and can be used to control the model outputs. Read the
51
+ documentation from [`PretrainedConfig`] for more information.
52
+
53
+
54
+ Args:
55
+ vocab_size (`int`, *optional*, defaults to 152064):
56
+ Vocabulary size of the Qwen2_5_VL model. Defines the number of different tokens that can be represented by the
57
+ `inputs_ids` passed when calling [`Qwen2_5_VLModel`]
58
+ hidden_size (`int`, *optional*, defaults to 8192):
59
+ Dimension of the hidden representations.
60
+ intermediate_size (`int`, *optional*, defaults to 29568):
61
+ Dimension of the MLP representations.
62
+ num_hidden_layers (`int`, *optional*, defaults to 80):
63
+ Number of hidden layers in the Transformer encoder.
64
+ num_attention_heads (`int`, *optional*, defaults to 64):
65
+ Number of attention heads for each attention layer in the Transformer encoder.
66
+ num_key_value_heads (`int`, *optional*, defaults to 8):
67
+ This is the number of key_value heads that should be used to implement Grouped Query Attention. If
68
+ `num_key_value_heads=num_attention_heads`, the model will use Multi Head Attention (MHA), if
69
+ `num_key_value_heads=1` the model will use Multi Query Attention (MQA) otherwise GQA is used. When
70
+ converting a multi-head checkpoint to a GQA checkpoint, each group key and value head should be constructed
71
+ by meanpooling all the original heads within that group. For more details checkout [this
72
+ paper](https://arxiv.org/pdf/2305.13245.pdf). If it is not specified, will default to `32`.
73
+ hidden_act (`str` or `function`, *optional*, defaults to `"silu"`):
74
+ The non-linear activation function (function or string) in the decoder.
75
+ max_position_embeddings (`int`, *optional*, defaults to 32768):
76
+ The maximum sequence length that this model might ever be used with.
77
+ initializer_range (`float`, *optional*, defaults to 0.02):
78
+ The standard deviation of the truncated_normal_initializer for initializing all weight matrices.
79
+ rms_norm_eps (`float`, *optional*, defaults to 1e-05):
80
+ The epsilon used by the rms normalization layers.
81
+ use_cache (`bool`, *optional*, defaults to `True`):
82
+ Whether or not the model should return the last key/values attentions (not used by all models). Only
83
+ relevant if `config.is_decoder=True`.
84
+ tie_word_embeddings (`bool`, *optional*, defaults to `False`):
85
+ Whether the model's input and output word embeddings should be tied.
86
+ rope_theta (`float`, *optional*, defaults to 1000000.0):
87
+ The base period of the RoPE embeddings.
88
+ use_sliding_window (`bool`, *optional*, defaults to `False`):
89
+ Whether to use sliding window attention.
90
+ sliding_window (`int`, *optional*, defaults to 4096):
91
+ Sliding window attention (SWA) window size. If not specified, will default to `4096`.
92
+ max_window_layers (`int`, *optional*, defaults to 80):
93
+ The number of layers that use SWA (Sliding Window Attention). The bottom layers use SWA while the top use full attention.
94
+ attention_dropout (`float`, *optional*, defaults to 0.0):
95
+ The dropout ratio for the attention probabilities.
96
+ vision_config (`Dict`, *optional*):
97
+ The config for the visual encoder initialization.
98
+ rope_scaling (`Dict`, *optional*):
99
+ Dictionary containing the scaling configuration for the RoPE embeddings. NOTE: if you apply new rope type
100
+ and you expect the model to work on longer `max_position_embeddings`, we recommend you to update this value
101
+ accordingly.
102
+ Expected contents:
103
+ `rope_type` (`str`):
104
+ The sub-variant of RoPE to use. Can be one of ['default', 'linear', 'dynamic', 'yarn', 'longrope',
105
+ 'llama3'], with 'default' being the original RoPE implementation.
106
+ `factor` (`float`, *optional*):
107
+ Used with all rope types except 'default'. The scaling factor to apply to the RoPE embeddings. In
108
+ most scaling types, a `factor` of x will enable the model to handle sequences of length x *
109
+ original maximum pre-trained length.
110
+ `original_max_position_embeddings` (`int`, *optional*):
111
+ Used with 'dynamic', 'longrope' and 'llama3'. The original max position embeddings used during
112
+ pretraining.
113
+ `attention_factor` (`float`, *optional*):
114
+ Used with 'yarn' and 'longrope'. The scaling factor to be applied on the attention
115
+ computation. If unspecified, it defaults to value recommended by the implementation, using the
116
+ `factor` field to infer the suggested value.
117
+ `beta_fast` (`float`, *optional*):
118
+ Only used with 'yarn'. Parameter to set the boundary for extrapolation (only) in the linear
119
+ ramp function. If unspecified, it defaults to 32.
120
+ `beta_slow` (`float`, *optional*):
121
+ Only used with 'yarn'. Parameter to set the boundary for interpolation (only) in the linear
122
+ ramp function. If unspecified, it defaults to 1.
123
+ `short_factor` (`List[float]`, *optional*):
124
+ Only used with 'longrope'. The scaling factor to be applied to short contexts (<
125
+ `original_max_position_embeddings`). Must be a list of numbers with the same length as the hidden
126
+ size divided by the number of attention heads divided by 2
127
+ `long_factor` (`List[float]`, *optional*):
128
+ Only used with 'longrope'. The scaling factor to be applied to long contexts (<
129
+ `original_max_position_embeddings`). Must be a list of numbers with the same length as the hidden
130
+ size divided by the number of attention heads divided by 2
131
+ `low_freq_factor` (`float`, *optional*):
132
+ Only used with 'llama3'. Scaling factor applied to low frequency components of the RoPE
133
+ `high_freq_factor` (`float`, *optional*):
134
+ Only used with 'llama3'. Scaling factor applied to high frequency components of the RoPE
135
+
136
+ ```python
137
+ >>> from transformers import Qwen2_5_VLForConditionalGeneration, Qwen2_5_VLConfig
138
+
139
+ >>> # Initializing a Qwen2_5_VL style configuration
140
+ >>> configuration = Qwen2_5_VLConfig()
141
+
142
+ >>> # Initializing a model from the Qwen2-VL-7B style configuration
143
+ >>> model = Qwen2_5_VLForConditionalGeneration(configuration)
144
+
145
+ >>> # Accessing the model configuration
146
+ >>> configuration = model.config
147
+ ```"""
148
+
149
+ model_type = "qwen2_5_vl"
150
+ sub_configs = {"vision_config": Qwen2_5_VLVisionConfig}
151
+ keys_to_ignore_at_inference = ["past_key_values"]
152
+ # Default tensor parallel plan for base model `Qwen2_5_VL`
153
+ base_model_tp_plan = {
154
+ "layers.*.self_attn.q_proj": "colwise",
155
+ "layers.*.self_attn.k_proj": "colwise",
156
+ "layers.*.self_attn.v_proj": "colwise",
157
+ "layers.*.self_attn.o_proj": "rowwise",
158
+ "layers.*.mlp.gate_proj": "colwise",
159
+ "layers.*.mlp.up_proj": "colwise",
160
+ "layers.*.mlp.down_proj": "rowwise",
161
+ }
162
+ base_model_pp_plan = {
163
+ "embed_tokens": (["input_ids"], ["inputs_embeds"]),
164
+ "layers": (["hidden_states", "attention_mask"], ["hidden_states"]),
165
+ "norm": (["hidden_states"], ["hidden_states"]),
166
+ }
167
+
168
+ def __init__(
169
+ self,
170
+ vocab_size=152064,
171
+ hidden_size=8192,
172
+ intermediate_size=29568,
173
+ num_hidden_layers=80,
174
+ num_attention_heads=64,
175
+ num_key_value_heads=8,
176
+ hidden_act="silu",
177
+ max_position_embeddings=32768,
178
+ initializer_range=0.02,
179
+ rms_norm_eps=1e-05,
180
+ use_cache=True,
181
+ tie_word_embeddings=False,
182
+ rope_theta=1000000.0,
183
+ use_sliding_window=False,
184
+ sliding_window=4096,
185
+ max_window_layers=80,
186
+ attention_dropout=0.0,
187
+ vision_config=None,
188
+ rope_scaling=None,
189
+ num_experts=4,
190
+ experts=None,
191
+ dof_config=None,
192
+ noise_scheduler=None,
193
+ dim_inputs=(1536, 1536),
194
+ attention_moe=False,
195
+ mlp_moe=False,
196
+ **kwargs,
197
+ ):
198
+ if isinstance(vision_config, dict):
199
+ self.vision_config = self.sub_configs["vision_config"](**vision_config)
200
+ elif vision_config is None:
201
+ self.vision_config = self.sub_configs["vision_config"]()
202
+
203
+ self.vocab_size = vocab_size
204
+ self.max_position_embeddings = max_position_embeddings
205
+ self.hidden_size = hidden_size
206
+ self.intermediate_size = intermediate_size
207
+ self.num_hidden_layers = num_hidden_layers
208
+ self.num_attention_heads = num_attention_heads
209
+ self.use_sliding_window = use_sliding_window
210
+ self.sliding_window = sliding_window
211
+ self.max_window_layers = max_window_layers
212
+ self.layer_types = ["dense"] * num_hidden_layers
213
+
214
+ # for backward compatibility
215
+ if num_key_value_heads is None:
216
+ num_key_value_heads = num_attention_heads
217
+
218
+ self.num_key_value_heads = num_key_value_heads
219
+ self.hidden_act = hidden_act
220
+ self.initializer_range = initializer_range
221
+ self.rms_norm_eps = rms_norm_eps
222
+ self.use_cache = use_cache
223
+ self.rope_theta = rope_theta
224
+ self.attention_dropout = attention_dropout
225
+ self.rope_scaling = rope_scaling
226
+
227
+ self.num_experts = num_experts
228
+ self.experts = experts
229
+ self.dof_config = dof_config
230
+ self.noise_scheduler = noise_scheduler
231
+ self.dim_inputs = tuple(dim_inputs)
232
+ self.attention_moe = attention_moe
233
+ self.mlp_moe = mlp_moe
234
+
235
+ if self.rope_scaling is not None and "type" in self.rope_scaling:
236
+ if self.rope_scaling["type"] == "mrope":
237
+ self.rope_scaling["type"] = "default"
238
+ self.rope_scaling["rope_type"] = self.rope_scaling["type"]
239
+ rope_config_validation(self, ignore_keys={"mrope_section"})
240
+
241
+ super().__init__(tie_word_embeddings=tie_word_embeddings, **kwargs)
242
+
243
+ @property
244
+ def text_config(self):
245
+ return self
246
+
247
+
248
+ __all__ = ["Qwen2_5_VLConfig"]
lerobot/src/lerobot/robots/bi_so_follower/bi_so_follower.py ADDED
@@ -0,0 +1,153 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env python
2
+
3
+ # Copyright 2025 The HuggingFace Inc. team. All rights reserved.
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ import logging
18
+ from functools import cached_property
19
+
20
+ from lerobot.processor import RobotAction, RobotObservation
21
+ from lerobot.robots.so_follower import SOFollower, SOFollowerRobotConfig
22
+
23
+ from ..robot import Robot
24
+ from .config_bi_so_follower import BiSOFollowerConfig
25
+
26
+ logger = logging.getLogger(__name__)
27
+
28
+
29
+ class BiSOFollower(Robot):
30
+ """
31
+ [Bimanual SO Follower Arms](https://github.com/TheRobotStudio/SO-ARM100) designed by TheRobotStudio
32
+ """
33
+
34
+ config_class = BiSOFollowerConfig
35
+ name = "bi_so_follower"
36
+
37
+ def __init__(self, config: BiSOFollowerConfig):
38
+ super().__init__(config)
39
+ self.config = config
40
+
41
+ left_arm_config = SOFollowerRobotConfig(
42
+ id=f"{config.id}_left" if config.id else None,
43
+ calibration_dir=config.calibration_dir,
44
+ port=config.left_arm_config.port,
45
+ disable_torque_on_disconnect=config.left_arm_config.disable_torque_on_disconnect,
46
+ max_relative_target=config.left_arm_config.max_relative_target,
47
+ use_degrees=config.left_arm_config.use_degrees,
48
+ cameras=config.left_arm_config.cameras,
49
+ )
50
+
51
+ right_arm_config = SOFollowerRobotConfig(
52
+ id=f"{config.id}_right" if config.id else None,
53
+ calibration_dir=config.calibration_dir,
54
+ port=config.right_arm_config.port,
55
+ disable_torque_on_disconnect=config.right_arm_config.disable_torque_on_disconnect,
56
+ max_relative_target=config.right_arm_config.max_relative_target,
57
+ use_degrees=config.right_arm_config.use_degrees,
58
+ cameras=config.right_arm_config.cameras,
59
+ )
60
+
61
+ self.left_arm = SOFollower(left_arm_config)
62
+ self.right_arm = SOFollower(right_arm_config)
63
+
64
+ # Only for compatibility with other parts of the codebase that expect a `robot.cameras` attribute
65
+ self.cameras = {**self.left_arm.cameras, **self.right_arm.cameras}
66
+
67
+ @property
68
+ def _motors_ft(self) -> dict[str, type]:
69
+ left_arm_motors_ft = self.left_arm._motors_ft
70
+ right_arm_motors_ft = self.right_arm._motors_ft
71
+
72
+ return {
73
+ **{f"left_{k}": v for k, v in left_arm_motors_ft.items()},
74
+ **{f"right_{k}": v for k, v in right_arm_motors_ft.items()},
75
+ }
76
+
77
+ @property
78
+ def _cameras_ft(self) -> dict[str, tuple]:
79
+ left_arm_cameras_ft = self.left_arm._cameras_ft
80
+ right_arm_cameras_ft = self.right_arm._cameras_ft
81
+
82
+ return {
83
+ **{f"left_{k}": v for k, v in left_arm_cameras_ft.items()},
84
+ **{f"right_{k}": v for k, v in right_arm_cameras_ft.items()},
85
+ }
86
+
87
+ @cached_property
88
+ def observation_features(self) -> dict[str, type | tuple]:
89
+ return {**self._motors_ft, **self._cameras_ft}
90
+
91
+ @cached_property
92
+ def action_features(self) -> dict[str, type]:
93
+ return self._motors_ft
94
+
95
+ @property
96
+ def is_connected(self) -> bool:
97
+ return self.left_arm.is_connected and self.right_arm.is_connected
98
+
99
+ def connect(self, calibrate: bool = True) -> None:
100
+ self.left_arm.connect(calibrate)
101
+ self.right_arm.connect(calibrate)
102
+
103
+ @property
104
+ def is_calibrated(self) -> bool:
105
+ return self.left_arm.is_calibrated and self.right_arm.is_calibrated
106
+
107
+ def calibrate(self) -> None:
108
+ self.left_arm.calibrate()
109
+ self.right_arm.calibrate()
110
+
111
+ def configure(self) -> None:
112
+ self.left_arm.configure()
113
+ self.right_arm.configure()
114
+
115
+ def setup_motors(self) -> None:
116
+ self.left_arm.setup_motors()
117
+ self.right_arm.setup_motors()
118
+
119
+ def get_observation(self) -> RobotObservation:
120
+ obs_dict = {}
121
+
122
+ # Add "left_" prefix
123
+ left_obs = self.left_arm.get_observation()
124
+ obs_dict.update({f"left_{key}": value for key, value in left_obs.items()})
125
+
126
+ # Add "right_" prefix
127
+ right_obs = self.right_arm.get_observation()
128
+ obs_dict.update({f"right_{key}": value for key, value in right_obs.items()})
129
+
130
+ return obs_dict
131
+
132
+ def send_action(self, action: RobotAction) -> RobotAction:
133
+ # Remove "left_" prefix
134
+ left_action = {
135
+ key.removeprefix("left_"): value for key, value in action.items() if key.startswith("left_")
136
+ }
137
+ # Remove "right_" prefix
138
+ right_action = {
139
+ key.removeprefix("right_"): value for key, value in action.items() if key.startswith("right_")
140
+ }
141
+
142
+ sent_action_left = self.left_arm.send_action(left_action)
143
+ sent_action_right = self.right_arm.send_action(right_action)
144
+
145
+ # Add prefixes back
146
+ prefixed_sent_action_left = {f"left_{key}": value for key, value in sent_action_left.items()}
147
+ prefixed_sent_action_right = {f"right_{key}": value for key, value in sent_action_right.items()}
148
+
149
+ return {**prefixed_sent_action_left, **prefixed_sent_action_right}
150
+
151
+ def disconnect(self):
152
+ self.left_arm.disconnect()
153
+ self.right_arm.disconnect()
lerobot/src/lerobot/robots/bi_so_follower/config_bi_so_follower.py ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env python
2
+
3
+ # Copyright 2025 The HuggingFace Inc. team. All rights reserved.
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ from dataclasses import dataclass
18
+
19
+ from lerobot.robots.so_follower import SOFollowerConfig
20
+
21
+ from ..config import RobotConfig
22
+
23
+
24
+ @RobotConfig.register_subclass("bi_so_follower")
25
+ @dataclass
26
+ class BiSOFollowerConfig(RobotConfig):
27
+ """Configuration class for Bi SO Follower robots."""
28
+
29
+ left_arm_config: SOFollowerConfig
30
+ right_arm_config: SOFollowerConfig
lerobot/src/lerobot/robots/earthrover_mini_plus/config_earthrover_mini_plus.py ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env python
2
+
3
+ # Copyright 2025 The HuggingFace Inc. team. All rights reserved.
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+ """Configuration for EarthRover Mini Plus robot."""
17
+
18
+ from dataclasses import dataclass
19
+
20
+ from ..config import RobotConfig
21
+
22
+
23
+ @RobotConfig.register_subclass("earthrover_mini_plus")
24
+ @dataclass
25
+ class EarthRoverMiniPlusConfig(RobotConfig):
26
+ """Configuration for EarthRover Mini Plus robot using Frodobots SDK.
27
+
28
+ This robot uses cloud-based control via the Frodobots SDK HTTP API.
29
+ Camera frames are accessed directly through SDK HTTP endpoints.
30
+
31
+ Attributes:
32
+ sdk_url: URL of the Frodobots SDK server (default: http://localhost:8000)
33
+ """
34
+
35
+ sdk_url: str = "http://localhost:8000"
lerobot/tests/artifacts/policies/xarm_lift_medium_tdmpc_use_policy/output_dict.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:22a1031a2acfc36a455bff73ffbe097cfeb7742b6485e7422507e78d7a682703
3
+ size 164
lerobot/tests/artifacts/policies/xarm_lift_medium_tdmpc_use_policy/param_stats.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b5dca7940998421ae58e9e26b2b2641b058d23b0270b7a147ebf85fbbdce7184
3
+ size 35496