kaleo22 / peak_cam

Other
0 stars 0 forks source link

ids_peak_cam

A Linux ROS2 C++ Node that wraps the driver API for IDS vision cameras using IDS peak software. Tested on Ubuntu 22.04 LTS.

How to run

Before running the code

  1. install ROS2 Humble
  2. install IDS peak

Running the code

  1. Clone the repository to your Linux computer

  2. Generate a ROS2 workspace

    $ mkdir -p camera_ws/src/

  3. Copy the peak_cam package into your ROS2 workspace and build it

    $ cp -r peak_cam/ camera_ws/src/

    $ cd camera_ws/ && colcon build && source install/setup.bash

  4. Set parameters such as ROS topic and acquisition rate under launch/params/peak_cam_params.yaml

  5. Plug the IDS vision camera and launch the node

    $ ros2 launch peak_cam peak_cam.launch.py

  6. Stop the node with Ctrl-C (SIGINT) for controlled shutdown

For multiple cameras, create a .launch and a .yaml file for each camera.

Hint: Sometimes the cameras are only accesible as root. Try sudo -s in your terminal and launch the node again.

All rights reserved.

BSD license: see LICENSE file