[rosbridge_websocket.launch] is neither a launch file in package [rosbridge_server] nor is [rosbridge_server] a launch file name
Hello! I installed ros-melodic-desktop-full
with apt-get
and I am unable to start rosbridge. This is what I see:
vagrant@ubuntu-bionic:~$ apt list ros-melodic-rosbridge-*
Listing... Done
ros-melodic-rosbridge-library/bionic 0.11.13-1bionic.20210112.182152 amd64
ros-melodic-rosbridge-msgs/bionic 0.11.13-1bionic.20201211.203430 amd64
ros-melodic-rosbridge-server/bionic 0.11.13-1bionic.20210112.195018 amd64
ros-melodic-rosbridge-suite/bionic 0.11.13-1bionic.20210112.195104 amd64
vagrant@ubuntu-bionic:~$ rosdep db | grep rosbridge
rosbridge_suite -> ros-melodic-rosbridge-suite
rosbridge_server -> ros-melodic-rosbridge-server
rosbridge_msgs -> ros-melodic-rosbridge-msgs
rosbridge_library -> ros-melodic-rosbridge-library
vagrant@ubuntu-bionic:~$ roslaunch rosbridge_server rosbridge_websocket.launch
RLException: [rosbridge_websocket.launch] is neither a launch file in package [rosbridge_server] nor is [rosbridge_server] a launch file name
The traceback for the exception was written to the log file
All other answers I can find that are at all similar all say to source ~/catkin_ws/devel/setup.bash
, but I have no such file. I haven't used catkin, just apt-get. I see no devel/setup.sh
file anywhere:
vagrant@ubuntu-bionic:~$ locate ros | grep setup.sh
/opt/ros/melodic/local_setup.sh
/opt/ros/melodic/setup.sh
/opt/ros/melodic/share/catkin/cmake/templates/local_setup.sh.in
/opt/ros/melodic/share/catkin/cmake/templates/setup.sh.in
What may be missing?
EDIT: I now tried to do the following without any luck:
$ cd ~/ros_ws
$ catkin_make
... successful output ...
$ source ~/ros_ws/devel/setup.bash
$ roslaunch rosbridge_server rosbridge_websocket.launch
RLException: [rosbridge_websocket.launch] is neither a launch file in package [rosbridge_server] nor is [rosbridge_server] a launch file name
The traceback for the exception was written to the log file
This is not easy for ROS newbies. No idea what I'm missing yet, and the documentation hasn't led to any clues.
apt list ros-melodic-rosbridge-*
lists available packages, not installed packages (they would be noted as such):You can either check that they say "installed", or you can use the
--installed
flag (apt list --installed ros-melodic-rosbridge-*
) to only show installed packages that meet your criteria. The output will be similar.That was it. I naively thought "desktop-full" meant it came with everything. I also didn't realize I needed the
--install
param toapt list
. Thanks!