Having shared CAD models for machines would be breakthrough

In PLR, we’ve been reverse-engineering drivers, and this has solved quite a lot at the software layer. However, in my opinion, genuine lab operations can’t be separated from the physical simulation, which I believe is still not yet solved in an open-source way.

The minimum best thing to have right now, perhaps, is a shared library of CAD models for different instruments. This may or may not live in PLR. But we already have sort of like this for resources such as labwares, though those are more well-shaped and standardised.

Nonetheless, some vendors, such as Opentrons, already share official CAD models of their machines. Perhaps we could push in this direction too, if there is enough motivation. Current LLMs are already quite capable of reconstructing CAD from official docs. I don’t think we need high-fidelity CAD. The most important things are the housing, general geometry, as well as details around the plate stations. Of course, we could have different tiers and disclaimers for any shared CAD models.

This is just my opinion based on the challenges I met when I started integrating a robotic arm into our own pipeline. I believe this is not only a problem with robotic arms, but with inter-machine integration in general. Sharing this in case it is of interest to the PLR community.

3 Likes

agreed :100:

@CamilloMoschner has contributed the first cad models to the repo recently

I know @junyu is also working on this

2 Likes

do you have any to contribute @hazlamshamin?

1 Like

this is great!!!

only think right now I can help with is the one already official, perhaps the opentrons and xArm. but if i have some time, also want to look on the Tecan microplate reader, as it is a different kind of plate holder other than deck-based, and it has open and closed state too, in which i think most plate stations are like this.

currently it seems that the CAD model is just an extension and no sort of framework for it. but i think this is fair for now, but perhaps a contributing guide for this would be enough for the time being.

will straight away contribute any that I am going to have!

Hi @hazlamshamin,

Yes, I have built PLR into the open-source repository for device CAD models in the creation of the PLR 3D Visualizer :slight_smile:

But I want to be clear here:

I have not seen a single LLM capable enough - yet - to produce CAD models of sufficient quality for this purpose.

The purpose of the Visualizer is to visualize the resource model / digital twin which has always been in PLR. And the ppurpose if the resource model is to represent physical reality. That requires models based on physical reality (i.e. geometric accuracy, correct movement behaviour, real time updates to subassemblies).

I would therefore highly encourage to

(1) ask OEMs for CAD models

(2) take a caliper and just generate a CAD model, we can always refine a model that exists - what open source is best, and

(3) only use LLM generated CAD models as a rough guide, not the single-point “fast” way of getting some model. (We have already seen LLM models pretend to have created CAD models of devices when in reality they simply found the CAD model, publicly provided by the OEM, which frankly is just a waste of tokens)

Finally, when 3D modelling devices I go through a lot of care to model only the exterior, and simplify it rationally.

Why?: because 3D rendering (i.e. the Visualizer’s job) always costs more compute!

But PLR is meant to be used anywhere anytime on anything - I use my Raspberry Pi as a test case for functionality → rule of thumb: if it’s not running neatly on a Raspberry Pi, it is too compute intense (though i have built in adaptive rendering and there are tiers to visualization already). So it is crucial to reduce load as much as possible. Many OEMs provide incredibly detailed models publicly → for PLR I take all internal geometries which nobody sees anyway out. We do not need screws for Visualizing, nor perfectly tapered holes, nor chamfers on overy corner. What we need is geometric accuracy of anything that we interact with like plate holders, and hinge placements.

I will write a guide to CAD contributions in the next 2 weeks based on this conversation :slight_smile:

Please let me know your thoughts on this.

3 Likes

i definitely agree on this! yes, and my point on the LLM was not to use it to just generate a valid CAD, but I meant the same as you, which is to help in the process. the CAD should reflect the real geometry that we care about just enough, without too much internal detail.

i still believe LLM is quite bad at physical intelligence, in the sense that for the reliable model we need, there is a lot of context that needs to be provided, as you said, such as referring to official public docs and using our own caliper measurements. In your experience, how easy is it to get a CAD from an OEM tho? I kinda think this would be private data.

My additional idea for generating this is also by using some open-source real-to-sim software, though this would probably need a very high-end camera too, to capture the spatial details well. so might as well just measure it by hand..

i also agree on the visualizer cost. my point for having CAD in PLR is actually not for simulating and visualising before every protocol is written or ran. it is more about finding the safe physical route once between stations, and then using that forever, as long as it is still applicable.

and this is super great!! my thoughts, so far, have always been shared in the post. generally, i suggest having verification levels and perhaps more elaborated notes on this. an md would still be helpful, as well as linking all the data and context used to derive the model. including pictures of different angles and states of the machines, perhaps.

will always comment or suggest over time :slight_smile:

2 Likes

This really depends on the OEM, I tend to buy from manufacturers that are actually supporting their customers to use their devices, it is a choice we make through our purchases :slight_smile:

Examples of amazing support are Brooks Automation, Azenta, Inheco.

But the “Gold Standard” is definitely Qinstrument. There I can answer your question with one link:

Detailed models right on this website for you to use.

Why? because when you can model a device accurately it is easier to use, and if it is easier to use I will buy it.

But exactly as you said, for OEMs that are not making their devices this easy to use, and we still need, picking up a measurement tape and refining your model over time can be a bit tedious but is very efficient. :slight_smile:

1 Like

I’m happy to share all the 3D models. It is reconstructed from all the public images and spec files. Some of the moving mechanisms may not be accurate. I think it is worth encouraging vendors and communities to provide or curate them to increase accuracy.
Feel free to integrate them: visualizer3D: 3D models for 71 devices by Junyu25 · Pull Request #1484 · PyLabRobot/pylabrobot · GitHub

5 Likes

SUPERRR GREAT :star_struck: :star_struck: :star_struck: !!! would be a very good start for people to start building and improving! I myself will also start refining for the machines I’m using from this!

some additional “standard” I been thinking for the models is, perhaps the geometry can be standardised in relative to their plate station (s).

for comparison, for SBS-format microplate, we sort of have standard geometry for well offset, pitch etc. I somehow think, plate station for each machine is also the main unit in the machine. here is my rough idea

Machine
├── Identity
│ └── Manufacturer, model and hardware version
├── Coordinates
│ └── Clearly marked origin (0, 0, 0), axis directions and units
├── Modelled state
│ └── Ready for loading/unloading: tray extended, relevant door open
├── Outer shape
│ ├── Housing, extended tray and open door geometry
│ └── Overall length, width and height in this state
├── Plate stations
│ ├── Station 0
│ │ ├── Nominal plate position relative to machine zero
│ │ │ ├── X, Y: plate’s bottom-front-left corner
│ │ │ ├── Z: height of the plate’s bottom
│ │ │ └── Possible sideways movement while loading
│ │ ├── Which way the plate faces, with A1 marked
│ │ └── Shape and dimensions around the plate
│ │ ├── Length and width of the space holding the plate
│ │ ├── Height of any edges around the plate
│ │ ├── Width and height of the loading opening, if present
│ │ └── Plate position relative to the opening, if present
│ └── Station 1 …
└── Model information
├── Sources: vendor CAD, drawings or measurements
├── Accuracy and any missing or estimated geometry
└── Licence

sort of like this when illustrated (imperfect and not real machine):

1 Like