How to compile the source code on workspace

Hello guys
I have written code but not able to figure it out how to compile it?

Hi @amalik ,

Did you follow the tutorial properly? Please go through the tutorial again to understand the steps.

Anyways, to compile a python based ROS package, you should issue the following command in terminal on catkin_wc directory:

  1. catkin_make --only-pkg-with-deps <your_package_name> and then do
  2. source devel/setup.bash
    and then, you can launch your package with
  3. roslaunch <your_package_name> <your_launch_file_name.launch>


1 Like

This topic was automatically closed after 5 days. New replies are no longer allowed.