ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

rqt_image_view for Foxy and Galactic [closed]

asked 2021-06-27 07:41:04 -0500

TK hobby gravatar image

updated 2021-06-29 06:39:00 -0500

I am missing something simple here, and been at it for days now. Installed Foxy and Galactic on Ubuntu 20.04. Both working and going through the tuts. Attempted to add packages from repo's as exercise and would like to use my camera on PI4. guess what, pi camera incompatible with 64bit OS. So down the rabbit hole I go.... i have a usb cam and laptop camera working with v4l2 camera (though it errors with calibration) but topics shows data. now to view the camera I need IMAGE_VIEW.

I cant get it installed with sudo apt-get ros-<foxy or="" galactic="">rqt-image-view --- it does install something but no ros2 run image_view image view --- no package found

git cloned it into a src folder in workspace with the colcon build .. no joy

sudo apt instal rqt* ... install ok but no image view in gui under visualization. (re-install rqt)

even tried Rviz2 --- gui opens up but camera add and link to camera topic

What am I doing wrong here? How do you one view a camera in Foxy or Galactic? I do source in terminal, and use a different terminal to run commands than the one I colcon build.

28-6-2021 (28-June) I think I am onto something here. So I installed Galactic and Foxy from here; It says to source it by . ~/ros2_galactic/ros2-linux/setup.bash .....when you do all works well enough minor glitches. BUT then tuts(tutorials) says to source /opt/ros/galactic/setup.bash like this and then nothing works although when you check the files it is there.

So unintended X2 ros directorys? When I apt install or ros dep install image_view ends up in tk@tk-Aspire-5820T:/opt/ros/galactic/include$ the source directory that does not work.

Need to find a way to install "rqt_image _view" in /home/tk/ros2_galactic(or foxy)/ros2-linux/?include?....somewhere

29 June 2021

SO: the short answer is source both! First source /opt/ros/galactic/setup.bash and then . ~/ros2_galactic/ros2-linux/setup.bash or the one for foxy (witch ever directory you installed your version)

This is how I made sense of it: When you install ros2 foxy or Galactic your version dependency's are installed in directory you are installing to, but the rest of ros2 is installed on your machine "system wide" When you create a workspace you add a 'layer' where you can build or add packages with 'create pkg' or build one from source, BUT (important BUT) when you apt or apt-get something it is installed in "system wide".
Running it by sourcing your version install or work_space install bash wont find the package or installed thing. Source "core" brings /installed things/ into terminal and sourcing "work_space setup.bash" brings version bash and w_s bash in. so you can use everything.

Source core = installed packages

source version = ros commands such as 'ros2 run'

source work space = your packages or build from source ones.

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by TK hobby
close date 2022-07-27 19:50:16.884663

1 Answer

Sort by ยป oldest newest most voted

answered 2021-06-29 06:43:40 -0500

TK hobby gravatar image

SO: the short answer is source both! First source /opt/ros/galactic/setup.bash and then . ~/ros2_galactic/ros2-linux/setup.bashor the one for foxy (witch ever directory you installed your version)

edit flag offensive delete link more

Question Tools



Asked: 2021-06-27 07:41:04 -0500

Seen: 1,300 times

Last updated: Jun 29 '21