mtconnect / cppagent

C++ Agent toolkit - Pre-built binaries, visit: https://github.com/mtconnect/cppagent/releases Docker images available at https://hub.docker.com/repositories/mtconnect
http://mtcup.org/
Apache License 2.0
141 stars 91 forks source link

Translation (Configuration) is being stripped by Agent #198

Closed NeilDes closed 2 years ago

NeilDes commented 2 years ago

Translation (Configuration) is being stripped by Agent and causeing validation failure

From device file

      <Configuration>
        <CoordinateSystems>
          <CoordinateSystem id="machcoord" type="MACHINE">
            <Transformation>
              <Translaton>0 0 0</Translaton>
              <Rotation>0 0 0</Rotation>
            </Transformation>
          </CoordinateSystem>
          <CoordinateSystem id="workcoord" type="OBJECT" parentIdRef="machcoord">
            <Transformation>
              <Translaton>0 0 0</Translaton>
              <Rotation>0 0 0</Rotation>
            </Transformation>
          </CoordinateSystem>
        </CoordinateSystems>
      </Configuration>

From agent output on probe command

<Configuration>
<CoordinateSystems>
<CoordinateSystem id="machcoord" type="MACHINE">
<Transformation>
<Rotation>0 0 0</Rotation>
</Transformation>
</CoordinateSystem>
<CoordinateSystem id="workcoord" parentIdRef="machcoord" type="OBJECT">
<Transformation>
<Rotation>0 0 0</Rotation>
</Transformation>
</CoordinateSystem>
</CoordinateSystems>
</Configuration>
wsobel commented 2 years ago

Translation is missing an i:

In device file: “Translaton” vs

Should be: “Translation”

This should have been logged. Check the agent.log and see if there wasn’t a warning.

On Jan 10, 2022, at 14:01, NeilDes @.***> wrote:

Translation (Configuration) is being stripped by Agent and causeing validation failure

From device file

  <Configuration>
    <CoordinateSystems>
      <CoordinateSystem id="machcoord" type="MACHINE">
        <Transformation>
          <Translaton>0 0 0</Translaton>
          <Rotation>0 0 0</Rotation>
        </Transformation>
      </CoordinateSystem>
      <CoordinateSystem id="workcoord" type="OBJECT" parentIdRef="machcoord">
        <Transformation>
          <Translaton>0 0 0</Translaton>
          <Rotation>0 0 0</Rotation>
        </Transformation>
      </CoordinateSystem>
    </CoordinateSystems>
  </Configuration>

From agent output on probe command

0 0 0 0 0 0

— Reply to this email directly, view it on GitHub https://github.com/mtconnect/cppagent/issues/198, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJ6BCK3H6MEHO7U57FTFI3UVNJLHANCNFSM5LUX5HTA. You are receiving this because you are subscribed to this thread.

NeilDes commented 2 years ago

Ok. Fixed typo. But now doesnt validate to the schema online. Looks like a typo there as well.

From XMLSpy.... Element is not allowed under element . Reason: The following elements are expected at this location (see below) 'Translaton' 'Rotation'

wsobel commented 2 years ago

Must be a schema issue. What version of the schema?

On Jan 10, 2022, at 14:19, NeilDes @.***> wrote:

Ok. Fixed typo. But now doesnt validate to the schema online. Looks like a typo there as well.

From XMLSpy.... Element is not allowed under element . Reason: The following elements are expected at this location (see below) 'Translaton' 'Rotation'

— Reply to this email directly, view it on GitHub https://github.com/mtconnect/cppagent/issues/198#issuecomment-1009398862, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJ6BCIW2SSXDVMFIGSZOLDUVNLOLANCNFSM5LUX5HTA. You are receiving this because you commented.

NeilDes commented 2 years ago

V1.7

wsobel commented 2 years ago

Fixed in schemas.MTConnect.org

Will fix in next build.

(Sent from mobile)

On Jan 10, 2022, at 14:21, NeilDes @.***> wrote:

 V1.7

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.