luckyrobots 0.1.69__py3-none-any.whl → 0.1.70__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -170,6 +170,25 @@ class LuckyRobots:
170
170
  time.sleep(sleep_s)
171
171
  return self.get_observation()
172
172
 
173
+ def reset(self, agent_name: str = "") -> ObservationResponse:
174
+ """
175
+ Reset the agent and return a fresh observation.
176
+
177
+ Args:
178
+ agent_name: Agent logical name. Empty string means default agent.
179
+
180
+ Returns:
181
+ ObservationResponse after reset.
182
+
183
+ Raises:
184
+ RuntimeError: If reset fails.
185
+ """
186
+ client = self._require_client()
187
+ resp = client.reset_agent(agent_name=agent_name)
188
+ if hasattr(resp, "success") and not resp.success:
189
+ raise RuntimeError(f"Reset failed: {getattr(resp, 'message', '')}")
190
+ return self.get_observation(agent_name=agent_name)
191
+
173
192
  def close(self, stop_engine: bool = True) -> None:
174
193
  """Close gRPC client and optionally stop the engine executable."""
175
194
  if self._engine_client is not None:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: luckyrobots
3
- Version: 0.1.69
3
+ Version: 0.1.70
4
4
  Summary: Robotics-AI Training in Hyperrealistic Game Environments
5
5
  Project-URL: Homepage, https://github.com/luckyrobots/luckyrobots
6
6
  Project-URL: Documentation, https://luckyrobots.readthedocs.io
@@ -1,6 +1,6 @@
1
1
  luckyrobots/__init__.py,sha256=3hJT7tvGfzU6-PzXICpv4O9SNAiuFhE95o0_dTxLi7Y,739
2
2
  luckyrobots/client.py,sha256=D81pk16ZFKP_uYDSJAur_aucRu7eW2JXW0s63HAYWfQ,28935
3
- luckyrobots/luckyrobots.py,sha256=F68TUhKplLbdkuARGGUer9jSf1QUzLhu1Rfc-vqDZso,6788
3
+ luckyrobots/luckyrobots.py,sha256=7XtBBqtOOKWqYE546mFTquYQ-j4n-bOvs_fiQTkUVbs,7444
4
4
  luckyrobots/utils.py,sha256=62BqpSRBFykVRMZ5Ti2F-yKRDoyU3UNHeesDF_PVCFc,2958
5
5
  luckyrobots/config/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
6
6
  luckyrobots/config/robots.yaml,sha256=Wu2AgwhZxo9F-RLcqPJXHnqzjT8a0wR-rFBcecck_eE,5164
@@ -38,7 +38,7 @@ luckyrobots/grpc/proto/viewport.proto,sha256=l3BZBho-v0DHLKt3OQhJwodaZMxZfFceAPQ
38
38
  luckyrobots/models/__init__.py,sha256=LsKj7q9fMTqpSC4WThJVlRMmwho5D08OURVCgerEURI,246
39
39
  luckyrobots/models/camera.py,sha256=e-CftAndHASfokhtUtU7ujGb2q_kcXZ6-2KKvY42CKg,3682
40
40
  luckyrobots/models/observation.py,sha256=jbRiUTjOP2ZiSobsnNcks3aMPAJA6oPoKqiXwvrNQK0,4758
41
- luckyrobots-0.1.69.dist-info/METADATA,sha256=S9czWJXY1XdNYfp2uPzs96YnxBqeJo9CD8ECBy1lQX0,8379
42
- luckyrobots-0.1.69.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
43
- luckyrobots-0.1.69.dist-info/licenses/LICENSE,sha256=xsPYvRJPH_fW_sofTUknI_KvZOsD4-BqjSOTZqI6Nmw,1069
44
- luckyrobots-0.1.69.dist-info/RECORD,,
41
+ luckyrobots-0.1.70.dist-info/METADATA,sha256=J0A1eaQQJCmehgT9tjCz3PEK9Vkvx3BMxab12IOyCVQ,8379
42
+ luckyrobots-0.1.70.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
43
+ luckyrobots-0.1.70.dist-info/licenses/LICENSE,sha256=xsPYvRJPH_fW_sofTUknI_KvZOsD4-BqjSOTZqI6Nmw,1069
44
+ luckyrobots-0.1.70.dist-info/RECORD,,