Skip to content

Commit 2bf1492

Browse files
committed
added data
1 parent 4e64e07 commit 2bf1492

1 file changed

Lines changed: 38 additions & 0 deletions

File tree

pylabrobot/resources/remote/deck_service.proto

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,48 +191,86 @@ message HasLidRequest {
191191

192192
service DeckService {
193193
// --- Tree ---
194+
195+
// Return the full resource tree rooted at the given resource (or the deck if empty).
194196
rpc GetTree(GetTreeRequest) returns (ResourceTree);
197+
// Return the flat data for a single resource by name.
195198
rpc GetResource(ResourceByNameRequest) returns (ResourceData);
199+
// Check whether a resource with the given name exists on the deck.
196200
rpc HasResource(ResourceByNameRequest) returns (BoolResponse);
201+
// Return the single-channel trash area resource.
197202
rpc GetTrashArea(Empty) returns (ResourceData);
203+
// Return the 96-channel trash area resource.
198204
rpc GetTrashArea96(Empty) returns (ResourceData);
199205

200206
// --- Spatial ---
207+
208+
// Get the location of a resource relative to another resource, with anchor offsets.
201209
rpc GetLocationWrt(GetLocationWrtRequest) returns (Coordinate);
210+
// Get the absolute (deck-space) location of a resource, with anchor offsets.
202211
rpc GetAbsoluteLocation(GetAbsoluteLocationRequest) returns (Coordinate);
212+
// Get the cumulative rotation of a resource in deck-space.
203213
rpc GetAbsoluteRotation(GetAbsoluteRotationRequest) returns (Rotation);
214+
// Get the rotation-aware bounding-box size of a resource.
204215
rpc GetAbsoluteSize(GetAbsoluteSizeRequest) returns (Size);
216+
// Get the highest known z-coordinate point of a resource and its children.
205217
rpc GetHighestPoint(GetHighestPointRequest) returns (FloatResponse);
218+
// Batch version of GetLocationWrt for multiple resource pairs at once.
206219
rpc BatchGetLocationWrt(BatchGetLocationWrtRequest) returns (BatchCoordinateResponse);
207220

208221
// --- Computed methods ---
222+
223+
// Compute the liquid volume in a well given a liquid height.
209224
rpc ComputeVolumeFromHeight(ComputeVolumeHeightRequest) returns (FloatResponse);
225+
// Compute the liquid height in a well given a liquid volume.
210226
rpc ComputeHeightFromVolume(ComputeVolumeHeightRequest) returns (FloatResponse);
227+
// Check whether a resource supports height/volume conversion functions.
211228
rpc SupportsComputeHeightVolume(ResourceByNameRequest) returns (BoolResponse);
229+
// Check whether a plate currently has a lid attached.
212230
rpc HasLid(HasLidRequest) returns (BoolResponse);
213231

214232
// --- Tip access ---
233+
234+
// Get the tip currently sitting on a tip spot.
215235
rpc GetTip(GetTipRequest) returns (TipData);
216236

217237
// --- Volume tracker ---
238+
239+
// Get the current volume tracker state (volume, pending, max, disabled) for a container.
218240
rpc GetVolumeTrackerState(ResourceByNameRequest) returns (VolumeTrackerState);
241+
// Record a pending liquid removal from a container's volume tracker.
219242
rpc RemoveLiquid(TrackerOpRequest) returns (Empty);
243+
// Record a pending liquid addition to a container's volume tracker.
220244
rpc AddLiquid(TrackerOpRequest) returns (Empty);
245+
// Batch version of RemoveLiquid for multiple containers at once.
221246
rpc BatchRemoveLiquid(BatchTrackerOpRequest) returns (Empty);
247+
// Batch version of AddLiquid for multiple containers at once.
222248
rpc BatchAddLiquid(BatchTrackerOpRequest) returns (Empty);
223249

224250
// --- Tip tracker ---
251+
252+
// Get the current tip tracker state (has_tip, tip data, disabled) for a tip spot.
225253
rpc GetTipTrackerState(ResourceByNameRequest) returns (TipTrackerState);
254+
// Remove the tip from a tip spot's tracker (e.g. after a pick-up).
226255
rpc RemoveTip(TipTrackerOpRequest) returns (Empty);
256+
// Add a new tip to a tip spot's tracker (e.g. after a return).
227257
rpc AddTip(TipTrackerOpRequest) returns (Empty);
228258

229259
// --- Commit / Rollback ---
260+
261+
// Commit pending volume tracker changes for the given containers.
230262
rpc CommitVolumeTrackers(CommitRollbackRequest) returns (Empty);
263+
// Roll back pending volume tracker changes for the given containers.
231264
rpc RollbackVolumeTrackers(CommitRollbackRequest) returns (Empty);
265+
// Commit pending tip tracker changes for the given tip spots.
232266
rpc CommitTipTrackers(CommitRollbackRequest) returns (Empty);
267+
// Roll back pending tip tracker changes for the given tip spots.
233268
rpc RollbackTipTrackers(CommitRollbackRequest) returns (Empty);
234269

235270
// --- Structure mutation ---
271+
272+
// Re-parent a child resource under a new parent at the given location.
236273
rpc AssignChild(AssignChildRequest) returns (Empty);
274+
// Remove a resource from its current parent.
237275
rpc UnassignChild(UnassignChildRequest) returns (Empty);
238276
}

0 commit comments

Comments
 (0)