It is suggested that you read this document before doing any further objective-c++ development. A full listing of the feature and limitations of objective-c++ can be found here. We can also use c++ objects as variables in objective-c classes and the reverse is true as well. This allow us to call c++ functions within objective-c methods and vice-versa. Using ROS within objective-c is possible only through the use of a subset of both languages which is known as objective-c++. Otherwise you can still create your packages manually. This feature will be part of ROS 1.3+, but if you want to get your hands on it early checkout this patch. This will create the additional files necessary for ROS to recognize it as a package and it will allow your xcode project to be built when rosmake is called. Where PROJECT_NAME is the name of the xcode project you just created. Once you have created the xcode project cd to its parent directory and make your xcode project a ROS package by using roscreate package and the “-xcproj” option like so: roscreate-pkg -xcproj PROJECT_NAME This is due to the fact that xcode creates a new directory when it creates a new project. When working with ROS and xcode it is important to remember to always create the xcode project first.
0 Comments
Leave a Reply. |