No announcement yet.

API2 with Python

  • Filter
  • Time
  • Show
Clear All
new posts

  • API2 with Python

    Hi, i'm working on a simulation using ROS, Python and Gazebo. But now for tests on the real Robotino i have seen that the common way to make the connection is through the Robortino API2, but i don't know how to set up my program to make it works using the API. Any ideas? Or it's not possible to use the API for non C++ based programs?

  • #2
    Why don't you use the robotino_rest_node?

    This is pure Python integrating seemlessly with ROS and you do not need to compile anything.


    • #3
      Ok, i'm goig to try that. But, how do i Install the REST-API ? i haven't seen information about that.

      And do i need robotino-damons? When i try sudo apt install robotino-daemons appears:

      robotino-daemons : Depends on: librealsense2 (= 2.28.0-0~realsense0.1512) but it's not installable


      • #4
        I just realized that this topic is in "Robotino2". If you have a Robotino2 then you can not upgrade. The only way would be this


        • #5
          Hi again, thank you. Do you know if it's posible to do tests in the Simulated Robotino of Robotino SIM Demo?, i have been trying it as is shown in changing the ip to but always get -> "Connection refused"

          And this appears in Robotino SIM, like if something were blocking the connection
          Attached Files


          • #6
            Please check in Robotino SIM the port you have to connect to. Select Robotino and then look at the dialog shown at the right side of the simulation window. It might be 8081 or something else if 8080 is already used.


            • #7
              It seems to be right, I only changed this in the main.cpp of the circle example:

              int main( int argc, char **argv )
              std::string hostname = "";
              if( argc > 1 )
              hostname = argv[1];

              The next image shows the output from Visual Studio:
              Attached Files