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

[rospack] Error: package 'rviz' not found

asked 2017-03-29 05:22:44 -0500

RohitM gravatar image

I've been using ROS for a couple of years and Rviz has been working satisfactorily till now. I'm not sure what I've done but I'm getting the error mentioned in the question ( [rospack] Error: package 'rviz' not found ) while executing the following statements:

rosrun rviz rviz 
rospack find rviz

Yes, I have sourced the required directories, this is the output to echo $ROS_PACKAGE_PATH

/home/rohit/glocal/src:/opt/ros/indigo/share:/opt/ros/indigo/stacks

ps. My original error was that one of my launch files which runs the rviz node was giving the following error:

ERROR: cannot launch node of type [rviz/rviz]: rviz
ROS path [0]=/opt/ros/indigo/share/ros
ROS path [1]=/home/rohit/glocal/src
ROS path [2]=/opt/ros/indigo/share
ROS path [3]=/opt/ros/indigo/stacks

This made me suspect that my rviz package wasn't being found which is the primary error according to me. Any help will be much appreciated.

edit retag flag offensive close merge delete

Comments

Your observation is right IMO. Next question might be; is there RViz on your computer?

130s gravatar image 130s  ( 2017-03-29 05:53:24 -0500 )edit

I would think that it should be there cause I've been using it till yesterday. Any way that I can check if it's there?

RohitM gravatar image RohitM  ( 2017-03-29 14:27:07 -0500 )edit

Thanks mate, you were right. Somehow my RViz got deleted. So I just installed it again from apt.

RohitM gravatar image RohitM  ( 2017-03-30 06:07:20 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2017-03-29 14:47:43 -0500

130s gravatar image

updated 2017-03-29 14:48:15 -0500

I'd run these commands.

apt-cache policy ros-kinetic-rviz
rospack find rviz
cd %YOUR_CATKIN_WS%/src && find . -iname rviz
edit flag offensive delete link more

Comments

this did not solve my issue apt-cache policy ros-kinetic-rviz: Installed: (none) Candidate: 1.14.1-1focal.20200826.191801 Version table: 1.14.1-1focal.20200826.191801 500 500 http://packages.ros.org/ros/ubuntu focal/main amd64 Packages rospack find rviz: [rospack] Error: package 'rviz' not found

$ cd %YOUR_CATKIN_WS%/src && find . -iname rviz -bash: cd: %YOUR_CATKIN_WS%/src: No such file or directory

nullspace gravatar image nullspace  ( 2020-09-02 08:52:30 -0500 )edit

@nullspace Please consider opening a new question (and link to it from here). Comment section is not meant to open a new question :)

130s gravatar image 130s  ( 2020-09-04 09:11:16 -0500 )edit

Question Tools

2 followers

Stats

Asked: 2017-03-29 05:22:44 -0500

Seen: 10,337 times

Last updated: Mar 29 '17