Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. RTI - related (Zac Howland) can help [modified]

RTI - related (Zac Howland) can help [modified]

Scheduled Pinned Locked Moved C / C++ / MFC
help
7 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    Jay03
    wrote on last edited by
    #1

    Hey if anyone knows about RTI functions, please tell me if function ClassInIt is declared to publish a certain object and function InIt is used to subscribe to a certain object. static void classInit( RTI::RTIambassador* rtiAmb ); static void Init(RTI::RTIambassador* rtiAmb); Thanks, Jay -- modified at 10:43 Monday 10th July, 2006

    Z E 2 Replies Last reply
    0
    • J Jay03

      Hey if anyone knows about RTI functions, please tell me if function ClassInIt is declared to publish a certain object and function InIt is used to subscribe to a certain object. static void classInit( RTI::RTIambassador* rtiAmb ); static void Init(RTI::RTIambassador* rtiAmb); Thanks, Jay -- modified at 10:43 Monday 10th July, 2006

      Z Offline
      Z Offline
      Zac Howland
      wrote on last edited by
      #2

      That is implementation specific ... and I don't have the RTI-NG source code to look at. You'd have to show me the source or documentation for those 2 methods for me to be able to tell you exactly what they do. If you decide to become a software engineer, you are signing up to have a 1/2" piece of silicon tell you exactly how stupid you really are for 8 hours a day, 5 days a week Zac

      J 2 Replies Last reply
      0
      • Z Zac Howland

        That is implementation specific ... and I don't have the RTI-NG source code to look at. You'd have to show me the source or documentation for those 2 methods for me to be able to tell you exactly what they do. If you decide to become a software engineer, you are signing up to have a 1/2" piece of silicon tell you exactly how stupid you really are for 8 hours a day, 5 days a week Zac

        J Offline
        J Offline
        Jay03
        wrote on last edited by
        #3

        This is for CallInIt void Ball::classInit( RTI::RTIambassador* rtiAmb ) { ObjectRoot::ms_rtiAmb = rtiAmb; ObjectRoot::ms_classIdStr = ms_ballIdStr; if ( ms_rtiAmb ) // if ms_rtiAmb!=NULL { ms_classId = ms_rtiAmb->getObjectClassHandle( ms_classIdStr ); ms_ballId = ms_rtiAmb->getObjectClassHandle( ms_ballIdStr ); ms_ballLocationXId = ms_rtiAmb->getAttributeHandle( ms_ballLocationXIdStr, ms_ballId ); ms_ballLocationYId = ms_rtiAmb->getAttributeHandle( ms_ballLocationYIdStr, ms_ballId ); ms_ballVelocityXId = ms_rtiAmb->getAttributeHandle( ms_ballVelocityXIdStr, ms_ballId ); ms_ballVelocityYId = ms_rtiAmb->getAttributeHandle( ms_ballVelocityYIdStr, ms_ballId ); ms_clockTickId = ms_rtiAmb->getInteractionClassHandle( ms_clockTickIdStr ); ms_clockTickNumId = ms_rtiAmb->getParameterHandle( ms_clockTickNumIdStr, ms_clockTickId ); ms_clockTickTimeId = ms_rtiAmb->getParameterHandle( ms_clockTickTimeIdStr, ms_clockTickId ); ms_clockTickIntervalId = ms_rtiAmb->getParameterHandle( ms_clockTickIntervalIdStr, ms_clockTickId ); } } This is for InIt void RoundTable::Init( RTI::RTIambassador* rtiAmb ) { ms_rtiAmb = rtiAmb; if ( ms_rtiAmb ) { /** * Get the RTTI (Meta-Object Protocol MOP) handles * Since the 1.0 RTI does not know anything about your data * and thus uses Run-Time Type Identification we must ask the * RTI what to call each of our data elements. */ try { ms_tableTypeId = ms_rtiAmb->getObjectClassHandle( ms_tableTypeStr ); ms_radiusTypeId = ms_rtiAmb->getAttributeHandle( ms_radiusTypeStr, ms_tableTypeId); ms_coefElastTypeId = ms_rtiAmb->getAttributeHandle( ms_coefElastTypeStr, ms_tableTypeId); ms_coefFrictionTypeId = ms_rtiAmb->getAttributeHandle( ms_coefFrictionTypeStr, ms_tableTypeId); } catch(RTI::FederateNotExecutionMember e) { cerr<<"RoundTable Exception: "<<__LINE__<

        1 Reply Last reply
        0
        • Z Zac Howland

          That is implementation specific ... and I don't have the RTI-NG source code to look at. You'd have to show me the source or documentation for those 2 methods for me to be able to tell you exactly what they do. If you decide to become a software engineer, you are signing up to have a 1/2" piece of silicon tell you exactly how stupid you really are for 8 hours a day, 5 days a week Zac

          J Offline
          J Offline
          Jay03
          wrote on last edited by
          #4

          Is there any sites or books that I can use to study the RTI syntax and how federates get published when another federate subscribes for it. And also the use of Id's in variables. Im a beginner in this and in need of some serious help. It would be great if you can point me to some books or sites. Thanks, Jay

          Z J 2 Replies Last reply
          0
          • J Jay03

            Is there any sites or books that I can use to study the RTI syntax and how federates get published when another federate subscribes for it. And also the use of Id's in variables. Im a beginner in this and in need of some serious help. It would be great if you can point me to some books or sites. Thanks, Jay

            Z Offline
            Z Offline
            Zac Howland
            wrote on last edited by
            #5

            Sadly, no. RTI-NG is a closed-source proprietary library that you have to purchase licenses to use. Since its purpose is limited to modelling and simulation for government contracts, there isn't much wide-spread knowledge on it. Some of the companies in the industry offer weeklong courses to discuss working with the varying versions of RTI. You might see if GT will pay for you to attend one. If you decide to become a software engineer, you are signing up to have a 1/2" piece of silicon tell you exactly how stupid you really are for 8 hours a day, 5 days a week Zac

            1 Reply Last reply
            0
            • J Jay03

              Is there any sites or books that I can use to study the RTI syntax and how federates get published when another federate subscribes for it. And also the use of Id's in variables. Im a beginner in this and in need of some serious help. It would be great if you can point me to some books or sites. Thanks, Jay

              J Offline
              J Offline
              Jun Du
              wrote on last edited by
              #6

              RTI is vender specific. Different venders may have different implementations. The contraint to RTI is basically HLA (and IEEE 1516) spec, which is fairly loose. I am not aware of any books about RTI. There are only training materials, which again are verder specific and very top level. I think what you lack is programming fundamentals and a good understanding of C++ language. Take a C++ book and study it seriously. This preparation effort will be paid back. Best, Jun

              1 Reply Last reply
              0
              • J Jay03

                Hey if anyone knows about RTI functions, please tell me if function ClassInIt is declared to publish a certain object and function InIt is used to subscribe to a certain object. static void classInit( RTI::RTIambassador* rtiAmb ); static void Init(RTI::RTIambassador* rtiAmb); Thanks, Jay -- modified at 10:43 Monday 10th July, 2006

                E Offline
                E Offline
                earl
                wrote on last edited by
                #7

                Jay, Given some of your other questions recently, you might do better to start by getting a stong working understanding of C++. earl

                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • World
                • Users
                • Groups