Skip to content

Commit a94b2f2

Browse files
renovate[bot]GoetzGoerischccvca
authored
chore(deps): update deps/open62541 digest to 258d6ad (#1080)
* chore(deps): update deps/open62541 digest to 7ca9cfb * fix(deps): Update MachineryNodeIds to new name * fix(deps): Change to GMS release version * fix(deps): Bump Machinery/Result to release * fix(GMS): Update include sort * Fix Typo in Identifier * fix: Adjustments to GMS Result * refactor: Linting --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Götz Görisch <[email protected]> Co-authored-by: Christian von Arnim <[email protected]>
1 parent 36558ca commit a94b2f2

24 files changed

+62
-6593
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,13 @@ jobs:
3737
echo "CMAKE_GENERATOR=Visual Studio 17 2022">> "$env:GITHUB_ENV"
3838
echo "ARG_CTEST=-C Debug">> "$env:GITHUB_ENV"
3939
- name: Build server with dependencies
40+
# yamllint disable rule:line-length
4041
run: |
4142
mkdir -p build
4243
cd build
4344
cmake ../Sample-Server/.github/ -DCMAKE_INSTALL_PREFIX:PATH=${{ env.CMAKE_INSTALL_PREFIX }}
4445
cmake --build .
46+
# yamllint enable rule:line-length
4547
- name: Upload Artefacts
4648
uses: actions/upload-artifact@v3
4749
with:
@@ -70,10 +72,12 @@ jobs:
7072
- name: Set up Docker Buildx
7173
uses: docker/[email protected]
7274
- name: PrepareReg Names
75+
# yamllint disable rule:line-length
7376
run: |
7477
echo IMAGE_REPOSITORY="$(echo "${{ github.repository }}" | tr '[:upper:]' '[:lower:]')" >> "$GITHUB_ENV"
7578
echo IMAGE_TAG="$(echo "${{ github.ref }}" | tr '[:upper:]' '[:lower:]' | awk '{sub(/([^\/]*\/){2}/,""); gsub(/\/|_/, "-")}1')" >> "$GITHUB_ENV"
7679
echo IS_NOT_PR="${{ env.IS_NOT_PR }})"
80+
# yamllint enable rule:line-length
7781
- name: Login to GitHub Container Registry
7882
uses: docker/[email protected]
7983
if: env.IS_NOT_PR == 'true' && ${{ github.actor }} != 'dependabot'

CMakeLists.txt

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ configure_file(cmake/empty.bsd.template "${CMAKE_BINARY_DIR}/model/Opc.Ua.Machin
7474
ua_generate_nodeset_and_datatypes(
7575
NAME "machinery"
7676
FILE_NS "${UA_NODESET_DIR}/Machinery/Opc.Ua.Machinery.NodeSet2.xml"
77-
FILE_CSV "${UA_NODESET_DIR}/Machinery/NodeIds.csv"
77+
FILE_CSV "${UA_NODESET_DIR}/Machinery/Opc.Ua.Machinery.NodeIds.csv"
7878
FILE_BSD "${CMAKE_BINARY_DIR}/model/Opc.Ua.Machinery.Types.bsd"
7979
NAMESPACE_MAP "3:http://opcfoundation.org/UA/Machinery/"
8080
TARGET_PREFIX "${PROJECT_NAME}"
@@ -185,9 +185,9 @@ target_link_libraries(ua_gen_woodworking PUBLIC ua_gen_machinery)
185185

186186
ua_generate_nodeset_and_datatypes(
187187
NAME "machinery_result"
188-
FILE_NS "${PROJECT_SOURCE_DIR}/model/GMS/Opc.Ua.MachineryResult.NodeSet2.xml"
189-
FILE_CSV "${PROJECT_SOURCE_DIR}/model/GMS/Opc.Ua.MachineryResult.NodeSet2.csv"
190-
FILE_BSD "${PROJECT_SOURCE_DIR}/model/GMS/Opc.Ua.MachineryResult.NodeSet2.bsd"
188+
FILE_NS "${UA_NODESET_DIR}/Machinery/Result/Opc.Ua.Machinery.Result.NodeSet2.xml"
189+
FILE_CSV "${UA_NODESET_DIR}/Machinery/Result/NodeIds.csv"
190+
FILE_BSD "${PROJECT_SOURCE_DIR}/model/MachineryResult/Opc.Ua.Machinery.Result.NodeSet2.bsd"
191191
NAMESPACE_MAP "7:http://opcfoundation.org/UA/Machinery/Result/"
192192
TARGET_PREFIX "${PROJECT_NAME}"
193193
OUTPUT_DIR "${SAMPLESERVER_GENERATED_NODESET_AND_DATATYPES_OUTPUT_DIR}"
@@ -207,13 +207,13 @@ target_link_libraries(ua_gen_machinery_result PUBLIC open62541::open62541)
207207

208208
ua_generate_nodeset_and_datatypes(
209209
NAME "gms"
210-
FILE_NS "${PROJECT_SOURCE_DIR}/model/GMS/opc.ua.gms.nodeset2.xml"
211-
FILE_CSV "${PROJECT_SOURCE_DIR}/model/GMS/opc.ua.gms.nodeset2.csv"
212-
FILE_BSD "${PROJECT_SOURCE_DIR}/model/GMS/opc.ua.gms.nodeset2.bsd"
213-
NAMESPACE_MAP "8:http://opcfoundation.org/GMS/"
210+
FILE_NS "${UA_NODESET_DIR}/GMS/opc.ua.gms.nodeset2.xml"
211+
FILE_CSV "${UA_NODESET_DIR}/GMS/opc.ua.gms.nodesids.csv"
212+
FILE_BSD "${UA_NODESET_DIR}/GMS/opc.ua.gms.types.bsd"
213+
NAMESPACE_MAP "8:http://opcfoundation.org/UA/GMS/"
214214
TARGET_PREFIX "${PROJECT_NAME}"
215215
OUTPUT_DIR "${SAMPLESERVER_GENERATED_NODESET_AND_DATATYPES_OUTPUT_DIR}"
216-
DEPENDS di ia machinery machinery_result machinetool
216+
DEPENDS di ia machinery_result machinetool machinery
217217
)
218218

219219
add_library(ua_gen_gms)
@@ -248,7 +248,7 @@ ua_generate_nodeset_and_datatypes(
248248
FILE_NS "${UA_NODESET_DIR}/PADIM/Opc.Ua.PADIM.NodeSet2.xml"
249249
FILE_CSV "${UA_NODESET_DIR}/PADIM/Opc.Ua.PADIM.NodeIds.csv"
250250
FILE_BSD "${CMAKE_BINARY_DIR}/model/Opc.Ua.PADIM.Types.bsd"
251-
NAMESPACE_MAP "6:http://opcfoundation.org/UA/PADIM/"
251+
NAMESPACE_MAP "10:http://opcfoundation.org/UA/PADIM/"
252252
TARGET_PREFIX "${PROJECT_NAME}"
253253
OUTPUT_DIR "${SAMPLESERVER_GENERATED_NODESET_AND_DATATYPES_OUTPUT_DIR}"
254254
DEPENDS di irdi
@@ -284,7 +284,7 @@ ua_generate_nodeset_and_datatypes(
284284
FILE_NS "${PROJECT_SOURCE_DIR}/model/AdditiveManufacturing/Opc.Ua.AdditiveManufacturing.NodeSet2.xml"
285285
FILE_CSV "${PROJECT_SOURCE_DIR}/model/AdditiveManufacturing/Opc.Ua.AdditiveManufacturing.NodeSet2.csv"
286286
FILE_BSD "${PROJECT_SOURCE_DIR}/model/AdditiveManufacturing/Opc.Ua.AdditiveManufacturing.NodeSet2.bsd"
287-
NAMESPACE_MAP "8:http://opcfoundation.org/UA/AdditiveManufacturing/NodeSet2/"
287+
NAMESPACE_MAP "12:http://opcfoundation.org/UA/AdditiveManufacturing/NodeSet2/"
288288
TARGET_PREFIX "${PROJECT_NAME}"
289289
OUTPUT_DIR "${SAMPLESERVER_GENERATED_NODESET_AND_DATATYPES_OUTPUT_DIR}"
290290
DEPENDS di

GMS/BasicGMS.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,9 @@ void BasicGMS::InstantiateResultManagement() {
9292
initCorrection(corr3, "corr3", "c_456", 0.75);
9393
}
9494

95-
void BasicGMS::initCorrection(GMS::CorrectionType_t &corr, std::string Identifier, std::string CharacteristicIdentfier, double value) {
95+
void BasicGMS::initCorrection(GMS::CorrectionType_t &corr, std::string Identifier, std::string CharacteristicIdentifier, double value) {
9696
corr.Identifier = Identifier;
97-
corr.CharacteristicIdentfier = CharacteristicIdentfier;
97+
corr.CharacteristicIdentifier = CharacteristicIdentifier;
9898
InstantiateOptional(corr.CorrectionValueAbsolute, m_pServer, n);
9999
corr.CorrectionValueAbsolute->Value = value;
100100
corr.CorrectionValueAbsolute->EngineeringUnits.value.DisplayName.text = "µm";

GMS/BasicGMS.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class BasicGMS : public InstantiatedMachineTool {
2727
void InstantiateTools();
2828
int m_simStep = 0;
2929

30-
void initCorrection(GMS::CorrectionType_t &corr, std::string Identifier, std::string CharacteristicIdentfier, double value);
30+
void initCorrection(GMS::CorrectionType_t &corr, std::string Identifier, std::string CharacteristicIdentifier, double value);
3131

3232
void InstantiateResultManagement();
3333
};

GMS/FullGMS.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,8 @@ void FullGMS::InstantiateEquipment() {
113113
sensor1.Axes->push_back("Y");
114114

115115
InstantiateOptional(sensor1.Capabilities, m_pServer, n);
116-
sensor1.Capabilities->push_back(UA_ToolCapabilities::UA_TOOLCAPABILITIES_PTMEAS);
116+
/// \todo Must be updated to release specification
117+
// sensor1.Capabilities->push_back(UA_ToolCapabilities::UA_TOOLCAPABILITIES_PTMEAS);
117118

118119
InstantiateOptional(sensor1.IsQualifiedStatus, m_pServer, n);
119120
sensor1.IsQualifiedStatus = UA_ToolIsQualifiedStatus::UA_TOOLISQUALIFIEDSTATUS_QUALIFIED;

GMS/HexagonGlobal.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class HexagonGlobal : public InstantiatedMachineTool {
2727
void InstantiateTools();
2828
int m_simStep = 0;
2929

30-
void initCorrection(GMS::CorrectionType_t &corr, std::string Identifier, std::string CharacteristicIdentfier, double value);
30+
void initCorrection(GMS::CorrectionType_t &corr, std::string Identifier, std::string CharacteristicIdentifier, double value);
3131

3232
void InstantiateResultManagement();
3333
};

GMS/HexagonSim.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class HexagonSim : public InstantiatedMachineTool {
2727
void InstantiateTools();
2828
int m_simStep = 0;
2929

30-
void initCorrection(GMS::CorrectionType_t &corr, std::string Identifier, std::string CharacteristicIdentfier, double value);
30+
void initCorrection(GMS::CorrectionType_t &corr, std::string Identifier, std::string CharacteristicIdentifier, double value);
3131

3232
void InstantiateResultManagement();
3333
};

GMS/OGPSmartScopeCNC500.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,9 @@ void OGPSmartScopeCNC500::InstantiateResultManagement() {
9292
initCorrection(corr3, "corr3", "c_456", 0.75);
9393
}
9494

95-
void OGPSmartScopeCNC500::initCorrection(GMS::CorrectionType_t &corr, std::string Identifier, std::string CharacteristicIdentfier, double value) {
95+
void OGPSmartScopeCNC500::initCorrection(GMS::CorrectionType_t &corr, std::string Identifier, std::string CharacteristicIdentifier, double value) {
9696
corr.Identifier = Identifier;
97-
corr.CharacteristicIdentfier = CharacteristicIdentfier;
97+
corr.CharacteristicIdentifier = CharacteristicIdentifier;
9898
InstantiateOptional(corr.CorrectionValueAbsolute, m_pServer, n);
9999
corr.CorrectionValueAbsolute->Value = value;
100100
corr.CorrectionValueAbsolute->EngineeringUnits.value.DisplayName.text = "µm";

GMS/OGPSmartScopeCNC500.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class OGPSmartScopeCNC500 : public InstantiatedMachineTool {
2727
void InstantiateTools();
2828
int m_simStep = 0;
2929

30-
void initCorrection(GMS::CorrectionType_t &corr, std::string Identifier, std::string CharacteristicIdentfier, double value);
30+
void initCorrection(GMS::CorrectionType_t &corr, std::string Identifier, std::string CharacteristicIdentifier, double value);
3131

3232
void InstantiateResultManagement();
3333
};

GMS/WenzelLH.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,9 @@ void WenzelLH::InstantiateResultManagement() {
9292
initCorrection(corr3, "corr3", "c_456", 0.75);
9393
}
9494

95-
void WenzelLH::initCorrection(GMS::CorrectionType_t &corr, std::string Identifier, std::string CharacteristicIdentfier, double value) {
95+
void WenzelLH::initCorrection(GMS::CorrectionType_t &corr, std::string Identifier, std::string CharacteristicIdentifier, double value) {
9696
corr.Identifier = Identifier;
97-
corr.CharacteristicIdentfier = CharacteristicIdentfier;
97+
corr.CharacteristicIdentifier = CharacteristicIdentifier;
9898
InstantiateOptional(corr.CorrectionValueAbsolute, m_pServer, n);
9999
corr.CorrectionValueAbsolute->Value = value;
100100
corr.CorrectionValueAbsolute->EngineeringUnits.value.DisplayName.text = "µm";

0 commit comments

Comments
 (0)