Skip to content

Unable to save planning scene to sqlite warehouse #3607

Open

Description

@felixvuo

Description

I believe that sqlite is the preferred warehouse for moveit2. I am struggling to save a planning scene and query into an sqlite warehouse.

I changed the moveit2_tutorials demo.launch.py script to use the sqlite plugin. However, as soon as I click "Connect" in the MotionPlanning/Context tab I see the following error in the log:

[rviz2-1] [INFO] [1762345696.805134259] [moveit_547773725.moveit.ros.motion_planning_frame]: Connect to database: {host: /tmp/warehaveyoubeen.db, port: 33829}
[rviz2-1] [ERROR] [1762345696.838706126] [warehouse_ros_sqlite.query]: Preparing Query failed: no such column: M_planning_scene_id

It seems to work ok for saving the start and end state of the robot to the warehouse, but if I try to save a scene, I get:

[rviz2-1] [ERROR] [1762345787.485221646] [warehouse_ros_sqlite.query]: Preparing Query failed: no such column: M_planning_scene_id
[rviz2-1] [ERROR] [1762345787.485520010] [warehouse_ros_sqlite.query]: Preparing Query failed: no such column: M_planning_scene_id
[rviz2-1] [ERROR] [1762345787.485620315] [moveit_547773725.moveit.ros.motion_planning_frame]: Prepare statement for removeMessages() failed no such column: M_planning_scene_id
[rviz2-1] [ERROR] [1762345787.509861915] [warehouse_ros_sqlite.query]: Preparing Query failed: no such column: M_planning_scene_id

For context, my intention is to save planning scenes in order to benchmark different motion planners. The benchmarking demo runs fine out of the box, but I can't seem to figure out how to set up my own planning scenes (say in rviz) and choose different robots. The pre-packaged databases seem to be linked to particular robots and I have not been able to find the right yaml structure to be able to describe the scenes and start/goal states.

ROS Distro

Jazzy

OS and version

Ubuntu 24.04.3 LTS

Source or binary build?

Source

If binary, which release version?

No response

If source, which branch?

main

Which RMW are you using?

None

Steps to Reproduce

  • Install ros 2 jazzy with apt
  • Download moveit2
  • Edit src/moveit2_tutorials/doc/tutorials/quickstart_in_rviz/launch/demo.launch.py to have the following warehouse definition:
    warehouse_ros_config = {   
        "warehouse_plugin": "warehouse_ros_sqlite::DatabaseConnection",
        "warehouse_host": "/tmp/warehaveyoubeen.db",
    }
  • build with colcon
  • run with ros2 launch moveit2_tutorials demo.launch.py db:=true
  • Click "Connect" in the Context tab of the MotionPlanning panel.

Expected behavior

It should be possible to save scenes into the sqlite warehouse using the Stored Scenes tab of the MotionPlanning panel.

Actual behavior

No scenes are saved, instead the error below are shown in the log, both when first clicking "Connect", and when trying to save a scene.

Backtrace or Console output

[rviz2-1] [INFO] [1762345696.805134259] [moveit_547773725.moveit.ros.motion_planning_frame]: Connect to database: {host: /tmp/warehaveyoubeen.db, port: 33829}
[rviz2-1] [ERROR] [1762345696.838706126] [warehouse_ros_sqlite.query]: Preparing Query failed: no such column: M_planning_scene_id
[rviz2-1] [ERROR] [1762345787.485221646] [warehouse_ros_sqlite.query]: Preparing Query failed: no such column: M_planning_scene_id
[rviz2-1] [ERROR] [1762345787.485520010] [warehouse_ros_sqlite.query]: Preparing Query failed: no such column: M_planning_scene_id
[rviz2-1] [ERROR] [1762345787.485620315] [moveit_547773725.moveit.ros.motion_planning_frame]: Prepare statement for removeMessages() failed no such column: M_planning_scene_id
[rviz2-1] [ERROR] [1762345787.509861915] [warehouse_ros_sqlite.query]: Preparing Query failed: no such column: M_planning_scene_id

Activity

  1. added
    bug
    on Nov 5, 2025
  2. josephjoel3099 commented on Mar 17, 2026

    @josephjoel3099

    Sol: https://discourse.openrobotics.org/t/fixing-moveit2-humble-moveit-ros-benchmarks-package/32048/9

    Using MongoDB on Ubuntu 22.04 instead of SQLite.

    Setup MongoDB with Docker

    Install Docker from Docker Engine Installation

    docker pull mongo:3.2
    sudo systemctl stop mongod
    sudo docker rm mongo32
    sudo docker run -d --name mongo32 -p 27018:27017 mongo:3.2
    docker ps

    Add Packages to Workspace

    In the <workspace>/src directory:

    git clone https://github.com/moveit/warehouse_ros_mongo.git -b ros2
    git clone https://github.com/valantano/moveit-ros-benchmark-humble-fix.git

    Then, from the workspace root:

    cd <workspace>
    rosdep install --from-paths src --ignore-src -r -y

    Build the Workspace

    cd <workspace>
    colcon build --symlink-install --allow-overriding moveit_ros_benchmarks

    Workspace Tree

    <workspace>$ tree src -L 1
    src
    ├── moveit-ros-benchmark-humble-fix
    ├── <you_robot_packages>
    └── warehouse_ros_mongo
    

    Follow instruction on Moveit2 benchmarking tutorials

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions