Repository navigation
Description
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
josephjoel3099 commentedon Mar 17, 2026
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
Add Packages to Workspace
In the
<workspace>/srcdirectory:Then, from the workspace root:
Build the Workspace
Workspace Tree
Follow instruction on Moveit2 benchmarking tutorials