choreonoid / choreonoid_ros

ROS package to use Choreonoid as a ROS node
12 stars 12 forks source link

Add support for ROS 2 (Humble) #18

Closed HansRobo closed 7 months ago

HansRobo commented 7 months ago

abstruct

I imported derverbles from choreonoid/choreonoid_ros2 and added some fixes. With this pull-request, this repository is configured to be buildable on both ROS 1 and ROS 2.

The major differences between ROS 1 version and ROS 2 version are as follows.

ROS configuration

ROS 1

ROS 2

ros_control support

ROS 1

ros_control support is available now.

ROS 2

ros_control support is not available now. However, we plan to support it in the future.

Build instruction for ROS 2 (Humble, Ubuntu22.04)

mkdir -p cnoid_ws/src
cd cnoid_ws/src
git clone git@github.com:choreonoid/choreonoid.git
git clone -b merge_choreonoid_ros2 git@github.com:choreonoid/choreonoid_ros.git
cd ..
source /opt/ros/humble/setup.bash
rosdep install -iy --from-paths src
colcon build --symlink-install

Note: Please ignore the error from choreonoid with catkin, when running rosdep (Fixed in https://github.com/choreonoid/choreonoid/pull/36)