Ar-Ray-code / RenderTexture2ROS2Image

Bridge between RenderTexture (Unity) object and sensor_msgs/Image (ROS2).

Home Page:https://ar-ray.hatenablog.com/entry/2022/01/31/214850

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

RenderTexture2ROS2Image

Bridge between RenderTexture (Unity) object and sensor_msgs/Image (ROS2).

The size of the image to be published depends on the value set in RenderTexture.

Requirements

Run on Unity

  1. Create Project (3D World)
  2. Add Assets from this repository

  1. Add Components
  2. Setting "TargetTexture" to "Camera2Texture"

  1. Push Play button

Check image topic using ROS2

source /opt/ros/foxy/setup.bash
ros2 run rqt_image_view rqt_image_view

About writer

About

Bridge between RenderTexture (Unity) object and sensor_msgs/Image (ROS2).

https://ar-ray.hatenablog.com/entry/2022/01/31/214850

License:Apache License 2.0


Languages

Language:C# 100.0%