Hi there,
I noticed that I can run Python scripts without updating the CMakeLists.txt and package.xml.
I guess it is because the course environment has installed these packages.
Could you please provide a guide about updating these two files?
I took some notes during learning but not sure if it covers everything.
CMakeLists.txt
find_package(catkin REQUIRED COMPONENTS
dependency_name # add new dependencies here
)
catkin_package(
# INCLUDE_DIRS include # Uncomment if you have headers in include directory
LIBRARIES your_package_name
CATKIN_DEPENDS dependency_name #add new dependencies here
# DEPENDS system_lib # Uncomment if you have dependencies on system libraries
)
catkin_install_python(PROGRAMS scripts/my_script.py
# add Python script path for each Python script
DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
)
package.xml
<build_depend>dependency_name</build_depend>
<exec_depend>dependency_name</exec_depend>
As for the customerized .msg/.srv, the guides are already very clear so I ignore them here.