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

ROS2 requires colcon build for any changes in python script?

asked 2022-03-29 20:09:31 -0500

kyubot gravatar image

I have been using ROS-melodic so far and my python package runs as I changed in the code without any catkin make however I just realized ROS2 is not working like this.
Every time I change the code, it requires colcon build to reveal its modification. Why this is needed?
Is this is intended feature or I am doing it wrong?

FYI, I am using ROS2 foxy on ubuntu 20.04 laptop. Installed ros and workspace as described in the manual.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
3

answered 2022-03-30 01:36:35 -0500

joseecm gravatar image

You don't need to execute colcon build every time you change your python code if you include the option --symlink-install. So use

colcon build --symlink-install

Best regards

edit flag offensive delete link more

Comments

Great it is working! Thank you so much.

kyubot gravatar image kyubot  ( 2022-03-30 04:51:47 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2022-03-29 20:09:31 -0500

Seen: 791 times

Last updated: Mar 30 '22