alexMarFar / serializer_pkg

ROS2 package for message serialization in both rclpy and rclcpp

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

serializer_pkg

ROS2 package for message serialization in both rclpy and rclcpp.

Available for:

  • sensor_msgs:
    • Image
    • CameraInfo
    • CompressedImage
    • PointCloud2
  • stereo_msgs:
    • DisparityImage

image

Usage

  1. Clone the repository in your workspace
cd ~/ros2_ws/src
git clone https://github.com/alexMarFar/serializer_pkg.git
  1. Update the topic_name in the launch file.

  2. Build the package

cd ~/ros2_ws/
colcon build --packages-up-to serializer_pkg
source install/setup.bash
  1. Launch the nodes
  • For Image (sensor_msgs)
ros2 launch serializer_pkg image.launch.py
  • For CameraInfo (sensor_msgs)
ros2 launch serializer_pkg camera_info.launch.py
  • For CompressedImage (sensor_msgs)
ros2 launch serializer_pkg compressed_image.launch.py
  • For DisparityImage (stereo_msgs)
ros2 launch serializer_pkg disparity_image.launch.py
  • For PointCloud2 (sensor_msgs)
ros2 launch serializer_pkg point_cloud2.launch.py

About

ROS2 package for message serialization in both rclpy and rclcpp

License:Apache License 2.0


Languages

Language:Python 57.5%Language:C++ 35.0%Language:CMake 7.5%