How to enable REST API?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Jfisher98
    Junior Member
    • Feb 2020
    • 13

    #1

    How to enable REST API?

    Hi,

    I have recently re-imaged the Robotino3 to the latest version. When I try request the robots data from the RESTful server using "http://192.168.0.1/cam0" I am returned 404 not found. Do I need to start the RESTful server?

    In addition, on boot from the fresh image the Robotino Factory Program connects to the robot, but doesn't display on the list of accessible robots. How can I fix this issue?

    Thanks,

    J
  • verbeek
    Administrator
    • Mar 2015
    • 242

    #2
    You may have issues with your network configuration. What is your Robotino's IP address. What does

    ifconfig

    show?

    Comment

    • Jfisher98
      Junior Member
      • Feb 2020
      • 13

      #3
      Hi verbeek,

      Thanks for getting back to me, I am in the university tomorrow and I will have a look and report back to you.

      Would you have a list of tasks or would you just like me to send you the ifconfig?

      Thanks,

      J

      Comment

      • verbeek
        Administrator
        • Mar 2015
        • 242

        #4
        It must be something with the networking. Send me the ifconfig output.

        Comment

        • Jfisher98
          Junior Member
          • Feb 2020
          • 13

          #5
          No problems, I will get that to you tomorrow evening. Thanks!

          Comment

          • Jfisher98
            Junior Member
            • Feb 2020
            • 13

            #6
            Hi Verbeek,

            Here is the output of the command:

            robotino@robotino:~$ ifconfig
            eth0 Link encap:Ethernet HWaddr 00:19:0f:1f:cf:26
            inet addr:192.168.0.1 Bcast:192.168.0.255 Mask:255.255.255.0
            UP BROADCAST MULTICAST MTU:1500 Metric:1
            RX packets:0 errors:0 dropped:0 overruns:0 frame:0
            TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
            collisions:0 txqueuelen:1000
            RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
            Interrupt:23 Memory:febc0000-febe0000

            eth0:10 Link encap:Ethernet HWaddr 00:19:0f:1f:cf:26
            inet addr:172.27.1.1 Bcast:172.27.255.255 Mask:255.255.0.0
            UP BROADCAST MULTICAST MTU:1500 Metric:1
            Interrupt:23 Memory:febc0000-febe0000

            lo Link encap:Local Loopback
            inet addr:127.0.0.1 Mask:255.0.0.0
            inet6 addr: ::1/128 Scope:Host
            UP LOOPBACK RUNNING MTU:65536 Metric:1
            RX packets:80724 errors:0 dropped:0 overruns:0 frame:0
            TX packets:80724 errors:0 dropped:0 overruns:0 carrier:0
            collisions:0 txqueuelen:1
            RX bytes:7876133 (7.8 MB) TX bytes:7876133 (7.8 MB)

            wlan0 Link encap:Ethernet HWaddr 60:e3:27:07:5f:34
            inet addr:192.168.43.4 Bcast:192.168.43.255 Mask:255.255.255.0
            inet6 addr: fe80::bd87:1a12:c0ad:7737/64 Scope:Link
            UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
            RX packets:2782 errors:0 dropped:0 overruns:0 frame:0
            TX packets:2146 errors:0 dropped:0 overruns:0 carrier:0
            collisions:0 txqueuelen:1000
            RX bytes:2588918 (2.5 MB) TX bytes:265232 (265.2 KB)

            Comment

            • verbeek
              Administrator
              • Mar 2015
              • 242

              #7
              What if you request the cam0 from 192.168.43.4 ? This is your WLAN interface and probably the interface of which you are connected to Robotino.

              What if you run Firefox on Robotino? Then all IP addresses should do.

              Comment

              • Jfisher98
                Junior Member
                • Feb 2020
                • 13

                #8
                Hi Verbeek,

                I managed to get everything running.

                I have a couple of questions regarding robotino factory:

                Can you use robotino factory and robotino view together?

                If not how could I go about creating a program for factory?

                Thanks,

                J

                Comment

                • verbeek
                  Administrator
                  • Mar 2015
                  • 242

                  #9
                  Robotino View and Robotino Factory are two totally different things. View is for creating data flow programs driving Robotino around. Factory is for creation of a map, definition of goal poses, pathes, stations ... There are a few blocks in View so that you can push jobs to Robotino driving it from pose to pose (defined with factory).

                  Comment

                  • Jfisher98
                    Junior Member
                    • Feb 2020
                    • 13

                    #10
                    Hi Verbeek,

                    I have since resolved these issues. I have a few new issue though...

                    When I create a pose and tell the robot "go to position" in robotino view, the robot comes up with a red cross on factory and nothing happens.

                    Additionally, I have a robotino3, is it possible to attach a realsense camera? I have connected it and enabled the real sense services on the browser, but nothing works.

                    Would you be able to help?

                    Thanks,

                    J

                    Comment

                    • verbeek
                      Administrator
                      • Mar 2015
                      • 242

                      #11
                      Robotino3 does not have USB3 and therefor the Realsense does not work.

                      For "go to position" you need a map and free space in the map. Check the costmap with Robotino Factory.

                      Comment

                      • Jfisher98
                        Junior Member
                        • Feb 2020
                        • 13

                        #12
                        When I go to create a map it allows me to drive around but it just keeps the original map. Would you have a guide somewhere to use Factory? I can't find it on the wiki, one of the links 404'd.

                        Comment

                        • verbeek
                          Administrator
                          • Mar 2015
                          • 242

                          #13
                          Help in Robotino Factory? Is your laserscanner working?

                          Comment

                          • Jfisher98
                            Junior Member
                            • Feb 2020
                            • 13

                            #14
                            Is a laser scanner required? We do not currently have one.

                            Comment

                            • verbeek
                              Administrator
                              • Mar 2015
                              • 242

                              #15
                              Sure you need a laser. This is the sensor to scan the room, create the map, do the localization.

                              https://www.roboparts.de/epages/6325...ducts/UST-10LX

                              Comment

                              Working...