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

how to view ros package code? [closed]

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

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

Comments

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 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

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

parzival gravatar image

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

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

Comments

1

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 site:answers.ros.org) in the future?

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

Question Tools

1 follower

Stats

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

Seen: 186 times

Last updated: Mar 25 '19