ModalAI Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Voxl_mpa_to_ros

    Ask your questions right here!
    3
    8
    539
    Loading More Posts
    • 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.
    • G
      gauravshukla914
      last edited by tom

      For some reason, when I do -
      roslaunch voxl_mpa_to_ros voxl_mpa_to_ros.launch

      it doesn't seem to work fully. Here's the output -

      voxl:~$ roslaunch voxl_mpa_to_ros voxl_mpa_to_ros.launch 
      ... logging to /home/root/.ros/log/7da4c736-3eb2-11ed-b715-18473db1be57/roslaunch-apq8096-3745.log
      Checking log directory for disk usage. This may take awhile.
      Press Ctrl-C to interrupt
      Done checking log file disk usage. Usage is <1GB.
      
      started roslaunch server http://localhost:57891/
      
      SUMMARY
      ========
      
      PARAMETERS
       * /rosdistro: indigo
       * /rosversion: 1.11.21
      
      NODES
        /
          voxl_mpa_to_ros_node (voxl_mpa_to_ros/voxl_mpa_to_ros_node)
      
      auto-starting new master
      process[master]: started with pid [3764]
      ROS_MASTER_URI=http://localhost:11311
      
      setting /run_id to 7da4c736-3eb2-11ed-b715-18473db1be57
      process[rosout-1]: started with pid [3777]
      started core service [/rosout]
      process[voxl_mpa_to_ros_node-2]: started with pid [3780]
      
      
      MPA to ROS app is now running
      
      Found new interface: qvio_overlay
      Found new interface: stereo
      Found new interface: tracking
      Found new interface: imu1
      Found new interface: qvio
      
      

      And it stops after this. When I do rostopic list on the other terminal, it says unable to communicate with the Master. My bashrc file is correct with correct ROS_MASTER_IP and ROS_IP. Even rqt says the same thing. I plan to see the output of the camera in the rqt viewer.

      Dong LiuD 1 Reply Last reply Reply Quote 0
      • G
        gauravshukla914
        last edited by

        Can someone help me with this? Thanks!

        1 Reply Last reply Reply Quote 0
        • T
          tangotoo
          last edited by

          I don't know if its related to your problem, but I had a lack of communication issue between voxl-vision and my PX4 and it was due to an additional process, voxl-mavlink-server not running. You may want to check if there are any other supporting processes you need running first in order to bring up ROS. I'm not a ROS user, so I can't help too much in that regard.

          1 Reply Last reply Reply Quote 0
          • G
            gauravshukla914
            last edited by

            @modaltb @Ed-Sutter @tom @Alex-Gardner anyone?

            1 Reply Last reply Reply Quote 0
            • Dong LiuD
              Dong Liu @gauravshukla914
              last edited by Dong Liu

              @gauravshukla914

              Don't know it is related. But I had the same experience. You can't rostopic list because the ROS_MASTER_URI and ROS_IP are not set correctly.

              There is file /home/root/my_ros_env.sh which defines these two variables. Need to be changed to reflect the real values.

              Dong

              1 Reply Last reply Reply Quote 0
              • G
                gauravshukla914
                last edited by

                @Dong-Liu yes that's correct. Everytime a master ip or ros ip changes, I make sure to give the corrects IPs in the bachrc file and source it. This is not the issue, but thanks for the suggestion though!

                1 Reply Last reply Reply Quote 0
                • G
                  gauravshukla914
                  last edited by

                  This is solved. I'm made to source my_ros_env.sh file everytime before launching the mpa file. But this never used to happen before. Anyway for now its working by sourcing the my_ros_env.sh everytime. Thanks all!

                  Dong LiuD 1 Reply Last reply Reply Quote 0
                  • Dong LiuD
                    Dong Liu @gauravshukla914
                    last edited by Dong Liu

                    @gauravshukla914 I also noticed it. Somehow on the drone's ROS indigo system. roslaunch voxl_mpa_to_ros voxl_map_to_ros.launch won't honor the existing ROS_MASTER_URI, it always source ROS_MASTER_URI etc from my_ros_env.sh

                    1 Reply Last reply Reply Quote 1
                    • First post
                      Last post
                    Powered by NodeBB | Contributors