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

Python source for built-in message types

asked 2018-09-02 13:49:24 -0500

pitosalas gravatar image

updated 2018-09-03 08:24:56 -0500

Where can I find Python source code for the built-in message types? I need them for a presentation. I've looked for them but I guess that they are not on GitHub but that they are generated during builds.

Specifically for the moment I am looking for Twist

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2018-09-02 20:33:35 -0500

fvd gravatar image

updated 2018-09-02 20:34:08 -0500

The message types are generated into the devel directory of your workspace (like other things that your source code wants to include), under devel/lib/python2.7/dist-packages/. The built-in ones are in the install directory, so since you are on kinetic, most likely /opt/ros/kinetic/lib/python2.7/dist-packages/.

PS: find . -name std_msgs helped.

edit flag offensive delete link more

Comments

@pitosalas: this is the answer to your question.

If it isn't, then please clarify why you haven't accepted it yet.

All msg packages can be found in the directories that @fvd mentions, including geometry_msgs.

gvdhoorn gravatar image gvdhoorn  ( 2018-09-03 14:16:32 -0500 )edit

Yes, I found it. I was mistakenly looking in std_msgs. Thanks all!

pitosalas gravatar image pitosalas  ( 2018-09-03 14:46:56 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2018-09-02 13:49:24 -0500

Seen: 234 times

Last updated: Sep 03 '18