eclipse-basyx / basyx-python-sdk

MIT License
59 stars 28 forks source link

Is it possible to serialize an AAS as XML OPC UA nodeset? #158

Closed jorgegomezjumh closed 11 months ago

jorgegomezjumh commented 11 months ago

In the AASX Package Explorer, there is an option to export the AAS as an OPC UA Nodeset2.xml (via UA server plug-in). Despite the server not running correctly, the XML file exported in this OPC UA format is very useful for me in creating my server with FreeOpcUa/opcua-asyncio.

Is it possible for the basyx-python-sdk to export my AAS as an OPC UA Nodeset2.xml through the UA server plug-in or to generate a file in this format? I have successfully generated an XML file for my AAS, but unfortunately, this file is not compatible with FreeOpcUa/opcua-asyncio.

My entire AAS is contained in the new_object_store, which is defined as follows:

new_object_store: model.DictObjectStore[model.Identifiable] = model.DictObjectStore()

s-heppner commented 11 months ago

At the moment, we do not support the OPC UA Nodeset2.xml data format, nor do we have concrete plans of implementing an adapter to it.

My suggestion would be to automate the workflow of exporting your AAS to AASX, importing it into the AASX Package Explorer and using their functionality to save in the desired data format. While I know almost nothing of the Package Explorer, I would suppose this could be achieved with a relatively simple bash script

s-heppner commented 11 months ago

I'll close this issue now. Feel free to reopen, if you have any further questions!