ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | Q&A
Ask Your Question

how to view ros package code? [closed]

asked 2019-03-24 22:03:08 -0600

parzival gravatar image

I want to read code for some packages which come with ROS full desktop installation, like robot_state_publisher or turtlesim_node for example. However when I do roscd to reach the directory, I can't find the actual python scripts or cpp files. How to view the code for these ROS packages? Please help.

I'm using ROS Kinetic on Ubuntu 16.04.

edit retag flag offensive reopen merge delete

Closed for the following reason duplicate question by gvdhoorn
close date 2019-03-25 04:25:47.684657


It depends on exactly which package you're referring to, but many ROS packages are found on GitHub. Have you tried searching there?

jayess gravatar image jayess  ( 2019-03-25 00:41:56 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2019-03-25 01:03:14 -0600

parzival gravatar image

updated 2019-03-25 01:29:42 -0600

Turns out there's a very simple solution. Just go to the wiki page of that package and clone it to your catkin workspace and build it.

edit flag offensive delete link more



Please note that this is a duplicate of at least #q214020, #q295677, #q214020 and many more.

@parzival: could you please try to use the search (or Google: source of package in the future?

gvdhoorn gravatar image gvdhoorn  ( 2019-03-25 04:05:54 -0600 )edit

Question Tools

1 follower


Asked: 2019-03-24 22:03:08 -0600

Seen: 140 times

Last updated: Mar 25 '19