structures

  • I found thing that confuse me with structures.
    With standard ones is no problem to operate.
    It's possible with aggregate {}, or with dot - to access specific part.


    But how operate with LOAD structure.
    Yes - I can write one load variable to other, or I can put aggregate with all data.
    But if I want to access to just one sub variable?
    with mass is no problem, but with Inertia or CoG? any smart trick to go over that?

    There are no impossibles, there are only possibles waiting to be found.

  • AD
  • [size=2]load is structure of three elements: M, CM and J.
    last two are another structure, each with more elements.
    So to access their elements you need to use another dot, for example



    LOAD_DATA[4].CM.X = 120 ; mm
    LOAD_DATA[4].CM.C = 45 ; deg
    [/size]LOAD_DATA[4].J.Y = 15 ; mm
    LOAD_DATA[4].M = 4.7 ; kg

    1) read pinned topic: READ FIRST...

    2) if you have an issue with robot, post question in the correct forum section... do NOT contact me directly

    3) read 1 and 2

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account
Sign up for a new account in our community. It's easy!
Register a new account
Sign in
Already have an account? Sign in here.
Sign in Now