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

    Unable to echo ros2 topic from drone to a computer

    ROS
    2
    3
    22
    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.
    • AniruddhaA
      Aniruddha
      last edited by

      Hello, I was trying to use subscribe to ros2 topics from drone to my computer. I can see the ros2 topics lists from drone on to the computer. But when it try to use ros2 topic echo command from computer I am getting following error.

      terminate called after throwing an instance of 'std::bad_alloc'
      what(): std::bad_alloc

      If I use echo on drone I can see topics printing. but can't do it on computer. can anyone help me with this.

      A 1 Reply Last reply Reply Quote 0
      • A
        ApoorvThapliyal @Aniruddha
        last edited by

        Hey @Aniruddha,
        Thanks for reaching out, could you provide more information about your setup and how things are communicating?

        AniruddhaA 1 Reply Last reply Reply Quote 0
        • AniruddhaA
          Aniruddha @ApoorvThapliyal
          last edited by

          @ApoorvThapliyal, Hi, I set ros domain id on both drone and the pc. they are connected it through the access point. I can ping both drone and pc from one and another and I can even connect drone to qgroundcontrol. That is why I am thinking it might be the ros side issue. I also check for micro dds agent and it was enable and running. I have setup the static ip on drone. I added following command in /etc/dhcpcd.conf file

          interface wlan0
          static ip_address=192.168.x.xx/24
          static routers=192.168.x.xx
          static domain_name_servers=8.8.8.8

          Let me know if you need anything else you need.

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