When using roscreate-pkg earlier, a few package dependencies were provided. Try moving to the directory for the package. Try re-sourcing your setup.sh in your fuerte_workspace. If you've created or added a package that's outside of the existing package paths, you will need to amend your ROS_PACKAGE_PATH environment variable to include that new location. Please consult the installation instructions for setup from SVN or from binaries, depending how you installed ROS. If this fails, it means ROS can't find your new package, which may be an issue with your ROS_PACKAGE_PATH. It is often useful to call rospack profile after making changes to your path so that new directories will be found: Now lets make sure that ROS can find your new package. manifests play an important role in ROS as they define how Packages are built, run, and documented. You're going to want to spend some time looking at beginner_tutorials/manifest.xml. Please edit beginner_tutorials/manifest.xml and mainpage.dox to finish creating your package Creating package directory ~/fuerte_workspace/sandbox/beginner_tutorialsĬreating include directory ~/fuerte_workspace/sandbox/beginner_tutorials/include/beginner_tutorialsĬreating cpp source directory ~/ros/ros_tutorials/beginner_tutorials/srcĬreating python source directory ~/fuerte_workspace/sandbox/beginner_tutorials/src/beginner_tutorialsĬreating package file ~/fuerte_workspace/sandbox/beginner_tutorials/MakefileĬreating package file ~/fuerte_workspace/sandbox/beginner_tutorials/manifest.xmlĬreating package file ~/fuerte_workspace/sandbox/beginner_tutorials/CMakeLists.txtĬreating package file ~/fuerte_workspace/sandbox/beginner_tutorials/mainpage.dox.Then create your package: $ roscreate-pkg beginner_tutorials std_msgs rospy roscpp Now go into the ~/fuerte_workspace/sandbox directory: $ cd ~/fuerte_workspace/sandboxĪlternatively, if you use Fuerte or later release, you can simply do: $ roscd We are going to make it depend on std_msgs, roscpp, and rospy, which are common ROS packages. Now we're going to go into your home or project directory and create our beginner_tutorials package. You can also specify dependencies of that package: ![]() To create a new package in the current directory: roscreate-pkg eliminates many tedious tasks of creating a new package by hand, and eliminates common errors caused by hand-typing build files and manifests. All ROS packages consist of the many similar files : manifests, CMakeLists.txt, mainpage.dox, and Makefiles. Before we create a package, let's see how the roscreate-pkg command-line tool works.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |