Repository navigation
Open
Labels
planningRelated the the motion planning stack (OMPL, CHOMP, etc.)
Description
Description
I am trying to add BITstar motion planner algorithm from OMPL into moveit_planner
Your environment
- ROS Distro: [Indigo]
- OS Version: Ubuntu 14.04
- Source:
Moveit: https://raw.githubusercontent.com/ros-planning/moveit/indigo-devel/moveit.rosinstall
Steps to reproduce
- set up moveit pkg
- create a catkin workspace and go into src folder
wstool init .wstool merge https://raw.githubusercontent.com/ros-planning/moveit/indigo-devel/moveit.rosinstallwstool updaterosdep install -y --from-paths . --ignore-src --rosdistro indigocd ..catkin config --extend /opt/ros/indigo --cmake-args -DCMAKE_BUILD_TYPE=Releasesudo apt-get -qq remove ros-indigo-ompl
- set up ompl pkg (in the same src folder)
git clone https://github.com/ompl/omplcd omplgit checkout 1.1.1(this version can be compiled successfully)wget https://raw.githubusercontent.com/ros-gbp/ompl-release/debian/indigo/trusty/ompl/package.xmlcd ../..catkin build
- modify moveit_planner to add BITstar planner
- modify src/moveit_planners/ompl/ompl_interface/src/planning_context_manager.cpp. Include the header file that defines your planner at the top and register your planner in the registerDefaultPlanners()
- modify /config/ompl_planning.yaml in fetch_moveit_config to include the option for the new planner.
- install fetch ros
git clone https://github.com/fetchrobotics/fetch_ros.git- catkin build again
- run fetch move_group.launch
- roslaunch fetch_moveit_config move_group.launch
- set start and goal pose in rviz
- choose [BITstar planner name you defined in ompl_planning.yaml]
- click
Plan
Expected behaviour
plan a pathway and show the planned path in rviz
Actual behaviour
moveit process died
Backtrace or Console output
Metadata
Metadata
Assignees
Labels
planningRelated the the motion planning stack (OMPL, CHOMP, etc.)
Activity
[-]Integrating BITstar from OMPL to moveit[/-][+]Integrating BITstar from OMPL to moveit -> Segfault[/+]v4hn commentedon Sep 20, 2017
I didn't look into your issue, but did you have a look at #117 ?
Maybe you made some mistake during setup that the new ompl-planner-wrapper does better?
BryceStevenWilley commentedon Apr 27, 2018
I actually made a fix to support this, just saw this issue.
The key thing is that BIT* can only handle certain types of state spaces, since it needs to do informed sampling (this shows up as
PathLengthDirectInfSampler only supports RealVector, SE2 and SE3 StateSpaces.in your error). However, MoveIt's model-based-state-space doesn't inherit from any of those state spaces. In theory, MBSS is exactly a RealVector state space, as it just puts the values in a double array, so the changes are pretty easy.I made these changes in our own moveit_ompl plugin here if you want to see how it's done. While it would be nice to have a PR for this in vanilla MoveIt, I think it'd be better to complete #117, as the plugin already has these changes.
davetcoleman commentedon May 14, 2018
As @BryceStevenWilley said, the key issue seems to be:
ascane commentedon Aug 28, 2021
I am also trying to add BITstar into moveit. Has anyone managed to do this already?