Announcement

Collapse
No announcement yet.

API 2 Version Difference

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • API 2 Version Difference

    Hi everyone,

    I have a question regarding API 2 for Robotino 2. The latest image for the Robotinos CF-Card contains the old version of the API 2, but if I want to run programs remotely e.g. from a laptop, only the newer version of API 2 is available for installation, which differs from the older Version.

    Is there a newer CF-Card image containing the new version of API 2?
    If not, how can I install the older API 2 on my laptop to be able to make use of it without having to program on the Robotinos directly?

    Thanks in advance,
    Leander

  • #2
    https://wiki.openrobotino.org/index.php?title=Downloads

    scroll down to CF card images(Robotino 1+2 until 2013) DEPRECATED

    This should be API2 compatible.

    Comment


    • #3
      Hi verbeek, thanks for your quick response!

      The problem I am currently facing is that the API2 - which is part of the image you linked - differs from the API2 which is installable on your PC (e.g. the function setVelocity() of OmniDrive takes its first two arguments in mm/s on the API2 of the CF-Cards but in m/s on the installable API2, which doesn't seem compatible).

      Comment


      • #4
        Hi,
        you say "doesn't seem compatible". Is it or is it not? Did you try it? What happens?

        Comment


        • #5
          I installed the newer API2 version and tried to modify the example programs of the Robotino 2's a bit. Trying to compile the modified program didn't work out at all, i get loads of errors - the whole example program (forward) doesn't seem to be compatible to the newer API2 version.

          I also tried to extract the older API2 Version of the CF-Card Image but i can't find the .lib files, i suspect that there are none or other file types specifically for linux systems.

          So currently i am not able to compile any Robotino programs on my Laptop.

          Comment


          • #6
            And your Laptop is running ... Windows/Linux/MacOS?

            Comment


            • #7
              My Laptop is running Windows

              Comment


              • #8
                What compiler are you using? Visual Studio 2019?

                Comment


                • #9
                  Yes, I also linked the include path of the installed API2

                  Comment


                  • #10
                    Did you follow the instructions on

                    https://wiki.openrobotino.org/index.php?title=API2

                    Comment


                    • #11
                      Linking an include path is impossible. You can link a library or you can add an include path. I would like you to follow the instructions. Use cmake to configure the example and then build the generated project with visual studio.

                      Comment


                      • #12
                        So the whole environment setup with CMake worked pretty well, thank you!
                        After building the test examples (example_circle) with the right IP of the robotino i want to adress and executing the resulting example_circle.exe, i instantly get "Com Error: Connection has been refused"

                        I am in the same subnet as the Robotino, which is connected to an external AP, i am also able to ping the Robotino i want to adress.
                        So I am not quite sure why the connection is being refused. I also tried running the .exe file as an admin and still get the same error message.

                        Comment


                        • #13
                          Hi, I will do some research on this next week. I will come back to you as soon as I find out whats going on.

                          Comment


                          • #14
                            Thank you very much!

                            Comment

                            Working...
                            X