Unable to integrate OpcUARoboticsNodeSet|OPC UA Companion Standards|Forum|OPC Foundation

Avatar
Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
Lost password?
sp_Feed sp_PrintTopic sp_TopicIcon
Unable to integrate OpcUARoboticsNodeSet
Avatar
Corinna Linner
New Member
Members
Forum Posts: 1
Member Since:
08/28/2023
sp_UserOfflineSmall Offline
1
09/08/2023 - 02:23
sp_Permalink sp_Print

Hi,

we are trying to add the OpcUARoboticsNodSet2 to our opc ua server of our robotic system.
The DI nodeset is integrated successfully and shown in the structure as well as our internal opc ua functionality in UA Expert.

The robotics nodeset is not yet visiable, but we don’t have any build errors. Only when we are editing the server.cpp file with addObjectNode (from open62541, according to the sample server example https://github.com/umati/Sampl…..dRobot.cpp) the object with it’s children is shown.

std::stringstream ss;
ss << “http://example.com/” << Name << “/”;
m_nsIndex = UA_Server_addNamespace(m_pServer, ss.str().c_str());
UA_ObjectAttributes objAttr = UA_ObjectAttributes_default;

objAttr.displayName = UA_LOCALIZEDTEXT_ALLOC(“”, Name.c_str());
objAttr.eventNotifier = UA_EVENTNOTIFIERTYPE_SUBSCRIBETOEVENTS;

auto status = UA_Server_addObjectNode(
m_pServer,
UA_NODEID_NUMERIC(m_nsIndex, 0),
UA_NODEID_NUMERIC(nsFromUri(m_pServer, constants::NsDIUri), UA_DIID_DEVICESET),
UA_NODEID_NUMERIC(0, UA_NS0ID_ORGANIZES),
*open62541Cpp::UA_QualifiedName(m_nsIndex, Name).QualifiedName,
UA_NODEID_NUMERIC(nsFromUri(m_pServer, constants::NsRoboticsUri), UA_ROBOTICSID_MOTIONDEVICETYPE),
objAttr,
nullptr,
m_nodeId.NodeId);

The xml implementation for axis_1 to axis_7 for example is also not shown even if the motion device is added with the addObjectNode function.
Is it necessary to add all object manually or should the content of the robotics xml structure be shown by integration to the cmake file?

Avatar
Randy Armstrong
Admin
Forum Posts: 1578
Member Since:
05/30/2017
sp_UserOfflineSmall Offline
2
09/08/2023 - 14:03
sp_Permalink sp_Print

You need to post this question on the open62541 github.

They are in best position to help with open62541 coding questions.

Forum Timezone: America/Phoenix
Most Users Ever Online: 510
Currently Online:
Guest(s) 33
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Forum Stats:
Groups: 2
Forums: 10
Topics: 1444
Posts: 4887