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 lunching voxl_mpa_to_ros.launch

Error when lunching voxl_mpa_to_ros.launch

Scheduled Pinned Locked Moved ROS
5 Posts 3 Posters 3.3k 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.
  • Mohammad GoliM Offline
    Mohammad GoliM Offline
    Mohammad Goli
    wrote on last edited by
    #1

    Hi,

    I installed ROS on our VOXL2 machine following this guide:
    https://docs.modalai.com/ros-installation-voxl2/

    when I try to run the voxl_mpa_to_ros node, by running the below command, it runs roscore correctly but gives an error with the actual node:

    voxl2:~/$ roslaunch voxl_mpa_to_ros voxl_mpa_to_ros.launch
    here is the error:

    /opt/ros/melodic/lib/voxl_mpa_to_ros/voxl_mpa_to_ros_node: error while loading shared libraries: libyaml-cpp.so.0.5: cannot open shared object file: No such file or directory
    failed to start local process: /opt/ros/melodic/lib/voxl_mpa_to_ros/voxl_mpa_to_ros_node __name:=voxl_mpa_to_ros_node __log:=/home/root/.ros/log/887bafd6-a917-11ef-818d-00c0cab3a5da/voxl_mpa_to_ros_node-2.log
    local launch of voxl_mpa_to_ros/voxl_mpa_to_ros_node failed
    [voxl_mpa_to_ros_node-2] process has died [pid -1, exit code 127, cmd /opt/ros/melodic/lib/voxl_mpa_to_ros/voxl_mpa_to_ros_node __name:=voxl_mpa_to_ros_node __log:=/home/root/.ros/log/887bafd6-a917-11ef-818d-00c0cab3a5da/voxl_mpa_to_ros_node-2.log].
    log file: /home/root/.ros/log/887bafd6-a917-11ef-818d-00c0cab3a5da/voxl_mpa_to_ros_node-2*.log

    I appreciate your advice on how to fix this.

    Thanks

    1 Reply Last reply
    0
    • Mohammad GoliM Offline
      Mohammad GoliM Offline
      Mohammad Goli
      wrote on last edited by
      #2

      To resolve the issue with the missing shared library, I followed these steps:

      Download the YAML-CPP source code archive:
      wget https://github.com/jbeder/yaml-cpp/archive/refs/tags/yaml-cpp-0.5.3.tar.gz
      Extract the archive:
      tar -xvf yaml-cpp-0.5.3.tar.gz

      Navigate to the extracted directory and create a build directory:
      cd yaml-cpp-0.5.3
      mkdir build
      cd build

      Configure the build with CMake, enabling shared libraries and setting the installation prefix:
      cmake .. -DBUILD_SHARED_LIBS=ON -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr/local

      Compile the library:
      make -j$(nproc)

      Install the compiled library:
      sudo make install

      Update the shared library cache:
      sudo ldconfig

      After completing these steps, the shared library issue was resolved successfully.

      However, now when I run the launch file I get the following error ( echo: write error: Broken pipe)
      voxl2:/$ roslaunch voxl_mpa_to_ros voxl_mpa_to_ros.launch
      ... logging to /home/root/.ros/log/eb195fbe-b8e2-11ef-b28f-00c0cab3a5da/roslaunch-m0054-6563.log
      Checking log directory for disk usage. This may take a while.
      Press Ctrl-C to interrupt
      Done checking log file disk usage. Usage is <1GB.

      started roslaunch server http://m0054:38143/

      SUMMARY

      PARAMETERS

      • /rosdistro: melodic
      • /rosversion: 1.14.13

      NODES
      /
      voxl_mpa_to_ros_node (voxl_mpa_to_ros/voxl_mpa_to_ros_node)

      auto-starting new master
      process[master]: started with pid [6577]
      ROS_MASTER_URI=http://localhost:11311

      setting /run_id to eb195fbe-b8e2-11ef-b28f-00c0cab3a5da
      process[rosout-1]: started with pid [6588]
      started core service [/rosout]
      process[voxl_mpa_to_ros_node-2]: started with pid [6591]

      MPA to ROS app is now running

      Found new interface: hires_large_color
      Found new interface: hires_large_encoded
      Found new interface: hires_large_grey
      Found new interface: hires_small_color
      Found new interface: hires_small_encoded
      Found new interface: hires_small_grey
      Found new interface: hires_snapshot
      Found new interface: qvio_overlay
      Found new interface: tracking_down_color
      Found new interface: tracking_down_grey
      Found new interface: tracking_down_small_color
      Found new interface: tracking_down_small_encoded
      Found new interface: tracking_down_small_grey
      Found new interface: tracking_front
      /usr/bin/voxl-list-pipes: line 38: echo: write error: Broken pipe
      /usr/bin/voxl-list-pipes: line 32: echo: write error: Broken pipe
      /usr/bin/voxl-list-pipes: line 35: echo: write error: Broken pipe
      [voxl_mpa_to_ros_node-2] process has died [pid 6591, exit code -11, cmd /opt/ros/melodic/lib/voxl_mpa_to_ros/voxl_mpa_to_ros_node __name:=voxl_mpa_to_ros_node __log:=/home/root/.ros/log/eb195fbe-b8e2-11ef-b28f-00c0cab3a5da/voxl_mpa_to_ros_node-2.log].
      log file: /home/root/.ros/log/eb195fbe-b8e2-11ef-b28f-00c0cab3a5da/voxl_mpa_to_ros_node-2
      .log
      *
      /usr/bin/voxl-list-pipes: line 38: echo: write error: Broken pipe
      /usr/bin/voxl-list-pipes: line 32: echo: write error: Broken pipe
      /usr/bin/voxl-list-pipes: line 35: echo: write error: Broken pipe
      /usr/bin/voxl-list-pipes: line 38: echo: write error: Broken pipe
      /usr/bin/voxl-list-pipes: line 32: echo: write error: Broken pipe
      /usr/bin/voxl-list-pipes: line 35: echo: write error: Broken pipe
      /usr/bin/voxl-list-pipes: line 38: echo: write error: Broken pipe
      /usr/bin/voxl-list-pipes: line 32: echo: write error: Broken pipe
      /usr/bin/voxl-list-pipes: line 35: echo: write error: Broken pipe
      Screenshot from 2024-12-12 18-46-37.png

      I appreciate if someone can provide any help on this.

      Thanks,

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

        I will take a gander at this today @Mohammad-Goli and get abck with an answer - I will say the ros1 is deprecated and we tend to support or push for ros2 - does the same issue persist with ros2?

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

          I will take a gander at this today @Mohammad-Goli and get abck with an answer - I will say the ros1 is deprecated and we tend to support or push for ros2 - does the same issue persist with ros2?

          Mohammad GoliM Offline
          Mohammad GoliM Offline
          Mohammad Goli
          wrote on last edited by Mohammad Goli
          #4

          @Zachary-Lowell-0

          All our robots are currently operating on ROS1, and we haven’t transitioned to ROS2 yet. Any help, advice, or guidance on this would be greatly appreciated. Thank you!

          1 Reply Last reply
          0
          • T Offline
            T Offline
            teddy.zaremba
            Contributor
            wrote on last edited by
            #5

            Hi @Mohammad-Goli, it seems like something on your VOXL is prematurely closing the file descriptor attached to the process that lists the pipes - I'm not sure what that is. I'm also not getting any errors with libyaml-cpp so that could be part of the problem. I'm running on SDK version 1.3.5, so I if were you I'd re-flash your VOXL and try the install again.

            Flashing the VOXL guide

            Sorry I couldn't recreate your issue. If you're still having a problem after re-flashing, let me know what SDK you tried and I'll give it a shot on my end.

            1 Reply Last reply
            0

            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