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

Revision history [back]

Not quite correct.

String is the module, which is located in the std_msgs.msg (sub-)package. So you would need to be looking for a String.py file (or to be correct in this case, _String.py). The full path to the file, if installed via apt, is /opt/ros/kinetic/lib/python2.7/dist-packages/std_msgs/msg/_String.py.

See also this SO question or this explanation of Python Packages.