ros:pkg_creation
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
ros:pkg_creation [2013/12/22 16:54] – created redox | ros:pkg_creation [Unknown date] (current) – removed - external edit (Unknown date) 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | # Creating your own package | ||
- | We've been given some practical work on ROS, but the instructions were focused on _ROS Electric_ and __rosbuild__, | ||
- | |||
- | mkdir -p workspace/ | ||
- | cd ./ | ||
- | catkin_init_workspace | ||
- | catkin_create_pkg myPackage ## Add deps here, like: std_msgs roscpp rospy ... | ||
- | # Time to do stuff here, like creating a main or whatever... | ||
- | cd ./myPackage | ||
- | mkdir src | ||
- | cd ./src | ||
- | vim ./main.cpp | ||
- | cd .. | ||
- | # Time to add our file to the build list | ||
- | vim CMakeList.txt | ||
- | # Let's say from here, that's we've name our executable myExec | ||
- | cd ../../ | ||
- | catkin_make | ||
- | |||
- | Now, if you want to be able to use you workspace with rosrun and stuff _without installing it, it's time to source another setup.bash, `source workspace/ | ||
- | |||
- | Time to run =) `rosrun myPackage myExec` | ||
- | |||
- | |||
- | |
/home/share/www/redox.ws/wiki/data/attic/ros/pkg_creation.1387731279.txt.gz · Last modified: 2023/11/24 21:55 (external edit)