SNRLab / SlicerROSIntegrationTraining

Create a plugin software to connect ROS and Slicer by OpenIGTLink
1 stars 0 forks source link

Create package for ROS #9

Closed ayamada0614 closed 11 years ago

ayamada0614 commented 11 years ago

Create ROS package for our plugin software

Reference: Plugin introduction

Create commands: roscreate-pkg gazebo_tutorials gazebo export ROS_PACKAGE_PATH=${ROS_PACKAGE_PATH}:pwd

ayamada0614 commented 11 years ago

roscreate-pkg OpenIGTLinkPluginForROS gazebo roscd OpenIGTLinkPluginForROS

ayamada0614 commented 11 years ago

cd OpenIGTLinkPluginForROS mkdir src mkdir lib mkdir build

ayamada0614 commented 11 years ago

Insert a line below to CMakeLists.txt:   rosbuild_add_library(YOUR_PACKAGE_NAME PATH_FOR_YOUR_PLUGIN_SOURCE_FILE)

ayamada0614 commented 11 years ago

The following line should be inserted into CMakeLists.txt:   rosbuild_add_library(OpenIGTLinkPluginForROS src/OpenIGTLinkPluginForROS.cpp)

ayamada0614 commented 11 years ago

Update your manifest.xml to insert the path for lib file

ayamada0614 commented 11 years ago

The following plugin paths should be inserted: Please change the character " to the markup character.

"export" "gazebo plugin_path="{prefix}/lib" gazebo_media_path="${prefix}" /" "/export"

jamesmith commented 11 years ago

I understood it. this issue is the almost same as the issue #15's tutorial.