Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Collapse
Brand Logo

ModalAI Forum

  1. ModalAI Support Forum
  2. Software Development
  3. ROS
  4. Error when launching mpa_to_ros2

Error when launching mpa_to_ros2

Scheduled Pinned Locked Moved ROS
4 Posts 2 Posters 769 Views
  • 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.
  • J Offline
    J Offline
    Judoor 0
    Regular
    wrote on last edited by
    #1

    Hi,
    I'm on the starling2 with sdk-1.3.
    I tried to follow the tutorial to install mpa_to_ros2 but at the end I can't run the mpa_to_ros2 node.

    First I installed ros2 on the voxl2, then I built the mpa_to_ros2 package on qrb5165 emulator
    (I did it with master branch and dev branch)
    And finally run ./deploy_to_voxl.sh then when running
    ros2 launch voxl_mpa_to_ros2 voxl_mpa_to_ros2.launch
    I've got this error message :

    [INFO] [launch]: All log files can be found below /opt/ros/foxy/log/2024-06-24-16-50-13-486942-m0054-9328
    [INFO] [launch]: Default logging verbosity is set to INFO
    Task exception was never retrieved
    future: <Task finished coro=<LaunchService._process_one_event() done, defined at /opt/ros/foxy/lib/python3.6/site-packages/launch/launch_service.py:226> exception=InvalidLaunchFileError('',)>
    Traceback (most recent call last):
      File "/opt/ros/foxy/lib/python3.6/site-packages/launch/launch_service.py", line 228, in _process_one_event
        await self.__process_event(next_event)
      File "/opt/ros/foxy/lib/python3.6/site-packages/launch/launch_service.py", line 248, in __process_event
        visit_all_entities_and_collect_futures(entity, self.__context))
      File "/opt/ros/foxy/lib/python3.6/site-packages/launch/utilities/visit_all_entities_and_collect_futures_impl.py", line 45, in visit_all_entities_and_collect_futures
        futures_to_return += visit_all_entities_and_collect_futures(sub_entity, context)
      File "/opt/ros/foxy/lib/python3.6/site-packages/launch/utilities/visit_all_entities_and_collect_futures_impl.py", line 45, in visit_all_entities_and_collect_futures
        futures_to_return += visit_all_entities_and_collect_futures(sub_entity, context)
      File "/opt/ros/foxy/lib/python3.6/site-packages/launch/utilities/visit_all_entities_and_collect_futures_impl.py", line 38, in visit_all_entities_and_collect_futures
        sub_entities = entity.visit(context)
      File "/opt/ros/foxy/lib/python3.6/site-packages/launch/action.py", line 108, in visit
        return self.execute(context)
      File "/opt/ros/foxy/lib/python3.6/site-packages/launch/actions/include_launch_description.py", line 130, in execute
        launch_description = self.__launch_description_source.get_launch_description(context)
      File "/opt/ros/foxy/lib/python3.6/site-packages/launch/launch_description_source.py", line 84, in get_launch_description
        self._get_launch_description(self.__expanded_location)
      File "/opt/ros/foxy/lib/python3.6/site-packages/launch/launch_description_sources/any_launch_description_source.py", line 53, in _get_launch_description
        return get_launch_description_from_any_launch_file(location)
      File "/opt/ros/foxy/lib/python3.6/site-packages/launch/launch_description_sources/any_launch_file_utilities.py", line 56, in get_launch_description_from_any_launch_file
        raise InvalidLaunchFileError(extension, likely_errors=exceptions)
    launch.invalid_launch_file_error.InvalidLaunchFileError: The launch file may have a syntax error, or its format is unknown
    

    I also tried installing mpa_to_ros2 by running apt-get install voxl-mpa-to-ros2

    But in the end the result was the same.

    Am I missing something ?

    Which tutorial am i suppose to follow ?

    Julien

    1 Reply Last reply
    0
    • Zachary Lowell 0Z Offline
      Zachary Lowell 0Z Offline
      Zachary Lowell 0
      ModalAI Team
      wrote on last edited by
      #2

      It is not a launch but a ros2 node itself - should just be ros2 run voxl_mpa_to_ros2 voxl_mpa_to_ros2, no launch script.

      Zach

      J 2 Replies Last reply
      0
      • Zachary Lowell 0Z Zachary Lowell 0

        It is not a launch but a ros2 node itself - should just be ros2 run voxl_mpa_to_ros2 voxl_mpa_to_ros2, no launch script.

        Zach

        J Offline
        J Offline
        Judoor 0
        Regular
        wrote on last edited by
        #3

        @Zachary-Lowell-0 said in Error when launching mpa_to_ros2:

        ros2 run voxl_mpa_to_ros2 voxl_mpa_to_ros2

        I've got
        "No executable found"
        when doing this command

        Julien

        1 Reply Last reply
        0
        • Zachary Lowell 0Z Zachary Lowell 0

          It is not a launch but a ros2 node itself - should just be ros2 run voxl_mpa_to_ros2 voxl_mpa_to_ros2, no launch script.

          Zach

          J Offline
          J Offline
          Judoor 0
          Regular
          wrote on last edited by
          #4

          @Zachary-Lowell-0 well it work now!
          I found these lines on another thread of the forum:

          sudo apt-get install voxl-ros2-foxy
          sudo apt-get install voxl-mpa-to-ros2
          voxl-configure-mpa-to-ros2
          source /opt/ros/foxy/mpa_to_ros2/install/setup.bash
          export ROS_HOME=/opt/foxy
          ros2 run voxl_mpa_to_ros2 voxl_mpa_to_ros2_node
          

          And everything worked first time ! So please put these line directly on the documentation cause I lost so much time with this install !

          1 Reply Last reply
          1

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better 💗

          Register Login
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          ModalAI
          Categories Recent Tags ModalAI.com Docs
          © 2026 ModalAI® · Accelerating autonomy for smaller, smarter, safer drones · Powered by NodeBB
          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups