Ask Your Question
0

How to migrate from rosbuild to catkin

asked 2014-05-21 15:01:17 -0500

Ken_in_JAPAN gravatar image

updated 2014-05-21 15:08:57 -0500

I'm a beginner about a migration. If you are familiar with migration from rosbuild to catkin, Could you teach me how to migrate from rosbuild to catkin. This is an example of eband_local_planner. I edited CMakeLists.txt as following. Is this correct? Now I use ROS hydro on Ubuntu12.04.

cmake_minimum_required(VERSION 2.8.3)
project(eband_local_planner)

# Before this can be catkinized, the control_toolbox needs to be catknized.

find_package(catkin REQUIRED 
        COMPONENTS
                        roscpp 
                        pluginlib 
                        nav_core
                        costmap_2d 
                        base_local_planner 
                        nav_msgs
                        geometry_msgs 
                        visualization_msgs 
                        tf
                        tf_conversions 
                        angles 
                        control_toolbox
                        actionlib 
                        eigen
)

find_package(Boost REQUIRED
    COMPONENTS
        thread
        )

find_package(Eigen REQUIRED)

include_directories(
    include
    ${catkin_INCLUDE_DIRS}
    ${EIGEN_INCLUDE_DIRS}
)
add_library(eband_local_planner
  src/conversions_and_types.cpp
  src/eband_action.cpp
  src/eband_local_planner.cpp
  src/eband_local_planner_ros.cpp
  src/eband_trajectory_controller.cpp
  src/eband_visualization.cpp
)
target_link_libraries(eband_local_planner 
    ${catkin_LIBRARIES}    
    ${Boost_LIBRARIES}
)
install(TARGETS eband_local_planner
       LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
       )
install(DIRECTORY include/${PROJECT_NAME}/
  DESTINATION ${CATKIN_PACKAGE_INCLUDE_DESTINATION}
  PATTERN ".svn" EXCLUDE
)
install(FILES blp_plugin.xml
    DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}
)

package.xml is written on this web( https://github.com/ros-planning/navig... ). If you have an experiment of catkinizing eband_local_planner, I want to know more information. The reason I put this article is I wanted to resolve an error when I moved a turtlebot with eband_local_planner. Actually, I have compiling error.

CMake Error at eband_local_planner/CMakeLists.txt:53 (install):
  install TARGETS given no LIBRARY DESTINATION for shared library target
  "eband_local_planner".
CMake Error at eband_local_planner/CMakeLists.txt:62 (install):
  install FILES given no DESTINATION!
edit retag flag offensive close merge delete

Comments

Before catkinizing a package, Is it better to rosbuild the package of fuerte version?

Ken_in_JAPAN gravatar image Ken_in_JAPAN  ( 2014-05-21 15:24:20 -0500 )edit

2 Answers

Sort by ยป oldest newest most voted
0

answered 2014-05-21 16:38:41 -0500

ahendrix gravatar image

The master branch here is also catkinized, and this is the source repository: https://github.com/utexas-bwi/eband_l...

edit flag offensive delete link more

Comments

Thanks @ahendrix, Excuse me, may I ask you? does master mean stable?

Ken_in_JAPAN gravatar image Ken_in_JAPAN  ( 2014-05-21 16:46:43 -0500 )edit

Branch names are set by the developer; you can usually guess which branches are stable by looking at all of the branch names, and how often they're updated: https://github.com/utexas-bwi/eband_local_planner/network . You can also look at tags, which are usually the released versions.

ahendrix gravatar image ahendrix  ( 2014-05-21 18:33:02 -0500 )edit

In this case, it looks like changes are done on their devel branch and on feature branches, and releases are done from master.

ahendrix gravatar image ahendrix  ( 2014-05-21 18:33:47 -0500 )edit
0

answered 2014-05-21 16:03:58 -0500

Ken_in_JAPAN gravatar image

I'm so sorry! I found a package catkinized on this web( https://github.com/utexas-bwi-gbp/eba... ). and this package is successfully compiled. This package might be useful for someone who want to know how to migrate.

edit flag offensive delete link more

Comments

This is the release repository; probably not what you're looking for.

ahendrix gravatar image ahendrix  ( 2014-05-21 18:15:05 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2014-05-21 15:01:17 -0500

Seen: 229 times

Last updated: May 21 '14