Skip to content

polarcat/rosimg

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

About

Simple image subscriber and viewer for ROS2 (tested in Foxy, Humble).

Limitations

Currently viewer only works with RGB raw and JPEG compressed images. Other image formats like PNG, Theora or depth can be added in the future when the need arises.

Dependencies

External

  • ros2 for providing ROS2 environment
  • glfw version 3 for windows management, graphics context etc.

Included

  • glad2 OpenGL loader.
  • stb for image manipulation.

Build

  • Install external dependencies
  • Setup ROS2 environment (follow ROS2 guide)
  • Compile
~/> mkdir build
~/> cd build
~/build> cmake .. && make

Build will produce 2 binaries: rosimg and rosbag-preview

Run (w/o installation)

  • Example for topic with uncompressed image:
# make sure ros2 bag player is run elsewhere
~/build> ./rosimg /image_raw
# this will read images straight from ROS bag file
# so no ros2 bag player is needed
~/build> ./rosbag-preview rosbag.db3 /image_raw

Install (optional)

  • Option 1 (sudo might be required)
~/build> make install
  • Option 2
~/build> cp -v ./rosimg $HOME/bin/
~/build> cp -v ./rosbag-preview $HOME/bin/

Usage

  • Example for topic with compressed camera image:
~/> rosimg /camera/compressed
~/> rosbag-preview rosbag.db3 /camera/compressed

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors