rosconsole command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
rosconsole: command not found
or when using sudo you get the following error message
sudo: rosconsole: command not found
Solutions to rosconsole: command not found
How To Fix rosconsole: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu rosconsole is provided by python3-rospy package.
python3-rospy is:
This package is part of Robot OS (ROS). The rospy client API enables Python programmers to quickly interface with ROS topics, services, and parameters. The design of rospy favors implementation speed (i.e. developer time) over runtime performance so that algorithms can be quickly prototyped and tested within ROS. It is also ideal for non-critical-path code, such as configuration and initialization code. Many of the ROS tools are written in rospy to take advantage of the type introspection capabilities.
Many of the ROS tools, such as rostopic and rosservice, are built on top of rospy.
This package contains the Python 3 library.
To fix this problem, we can install more using the command below.
sudo apt-get -y install python3-rospy
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install python3-rospy.
sudo apt -y install python3-rospy
Or if you have aptitude installed you can use the following command.
sudo aptitude install python3-rospy
Summary
In this tutorial we learn how to fix rosconsole command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.