Where is the source code of installed packages?
I have installed ROS Kinetic and it sits is the /opt/ros/kinetic/
folder which has the following structure:
.
├── bin
├── env.sh
├── etc
├── include
├── lib
├── setup.bash
├── setup.sh
├── _setup_util.py
├── setup.zsh
└── share
Now suppose I want to view the source code which makes rosrun turtlesim turtle_teleop_key
possible. It is a node of the turtlesim
package, so I navigate to this package using roscd turtlesim
. This puts me into the directory /opt/ros/kinetic/share/turtlesim
, which has the following files:
.
├── cmake
├── images
├── msg
├── package.xml
└── srv
The actual .cpp
source files are nowhere to be found! How can I view the source files for a given package? turtlesim
is just an example, there are of course other packages whose source I'm interested in looking at.