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

Where do the codes reside when I install a ROS package using apt?

asked 2020-03-02 07:00:24 -0500

electrophod gravatar image

I have recently installed turtlebot3 packages on my system using the apt package manager. But when I go into the package 'turtlebot3_teleop' I dont see any codes or anything. I just see a folder called 'launch' supposedly where all the launch files reside and a cmake file. I wanted to know where are the codes which make the turtlebot3 subscribe to the values I publish through my keyboard keys? Also where are the codes for the nodes which run when I run the launch file?

I have some idea that these packages are installed as binary packages, hence only their executable form is visible, but I don't have much clarity about this.

Pls explain

TIA

edit retag flag offensive close merge delete

Comments

This seems like a duplicate of #q246775 and #q295677.

gvdhoorn gravatar image gvdhoorn  ( 2020-03-02 07:17:38 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
2

answered 2020-03-02 07:07:44 -0500

Mehdi. gravatar image

updated 2020-03-02 07:08:31 -0500

There is no code when you install using apt. Those are precompiled binaries that get installed under /opt/ros/melodic/

Launch files are in /opt/ros/melodic/share/pkg_name/

Python code might also be there, look in /opt/ros/melodic/lib/python2.7/dist-packages/pkg_name/

Best is to clone the repositories you need from github and compile them by yourself in a catkin workspace.

edit flag offensive delete link more

Comments

+100 for answering, but if possible, search for duplicates first (use Google: search terms site:answers.ros.org).

gvdhoorn gravatar image gvdhoorn  ( 2020-03-02 07:18:10 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2020-03-02 07:00:24 -0500

Seen: 101 times

Last updated: Mar 02 '20