Last active
April 3, 2018 11:52
-
-
Save harderthan/68fe7577f1a450608bbbe1786d9cf243 to your computer and use it in GitHub Desktop.
Eclipse with ROS (Set up the project)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# 1. Installing Eclipse | |
# http://www.eclipse.org/ or CUDA Tool-Kit (Nsight Eclipse). | |
# 2. Catkin-y approach | |
[ -d "$1" ] || exit | |
[ $# == 1 ] || exit | |
export ROOT_PATH=$1 | |
cd $ROOT_PATH | |
catkin_make --force-cmake -G"Eclipse CDT4 - Unix Makefiles" | |
awk -f $(rospack find mk)/eclipse.awk build/.project > build/.project_with_env && mv build/.project_with_env build/.project | |
# 3. Importing the project into Eclipse | |
# File --> Import --> Existing projects into workspace (Select root directory). | |
# Have to check "CTRL" while clicking on a function/class name. | |
# 4. Running and debugging your executables within Eclipse | |
# Run --> Run configurations... --> C/C++ Application. | |
# Select the correct binary on the main tab. | |
# Then in the environment tab, add. (You can run "echo $ROS_ROOT" to know that) | |
## Reference | |
# http://wiki.ros.org/IDEs |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment