How darshmenon/ur3_ros2_pick_and_place works
This repository is a ROS 2 robotics stack for simulating and operating UR arms with grippers, with autonomous pick-and-place as its central workflow: launch the robot and MoveIt, perceive the scene, plan grasp-and-place actions, then execute them. It also includes alternative task planners and learned policies, data collection, force control, conveyor and dual-arm support, plus visualization and persistent planning-scene storage. The map combines README-described capabilities with sampled source; several listed branches are documented but their runtime wiring was not sampled, so those links are marked unverified or omitted.
Main entry points: pick_place_demo.launch.py MTC pick-place task · get_planning_scene_server.cpp Planning scene service · llm_planner_node.py LLM task planner · ur.gazebo.launch.py Gazebo simulation
Components 25
Robot and simulation
- Gazebo simulation
ur_gazebo/launch/ur.gazebo.launch.py - Simulation control
src/gz_ros2_control/src/gz_system.cpp - MoveIt setup
moveit_config/launch/move_group.launch.py
Perception and grasping
- Planning scene service
ur_mtc_pick_place_demo/src/get_planning_scene_server.cpp - Scene client
ur_mtc_pick_place_demo/src/get_planning_scene_client.cpp - Object segmentation
ur_perception/src/object_segmentation.cpp - Cloud reconstruction
ur_perception/ur_perception/object_reconstructor_node.py - Grasp detection
ur_grasp/ur_grasp/grasp_node.py - Cylinder grasp estimator
ur_grasp/ur_grasp/cylinder_grasp_detector.py
Task planning and execution
- MTC pick-place task
ur_mtc_pick_place_demo/launch/pick_place_demo.launch.py - Task stages and solvers
src/moveit_task_constructor/core/src/task.cpp - LLM task planner
ur_llm_planner/ur_llm_planner/llm_planner_node.py - Ollama client
ur_llm_planner/ur_llm_planner/ollama_client.py - Motion executor
ur_llm_planner/ur_llm_planner/motion_executor.py - Behavior tree planner
ur_bt_planner/ur_bt_planner/bt_planner_node.py
Learning and data
- RL policy
ur_rl_training/ur_rl_training/policy_node.py - Flow policy inference
ur_flow_policy/ur_flow_policy/inference_node.py - Flow-matching model
ur_flow_policy/ur_flow_policy/model.py - Demonstration collector
ur_data_collector/ur_data_collector/collector_node.py
Control and integrations
- Force control
ur_force_control/src/joint_impedance_controller.cpp - Conveyor simulation
ur_conveyor/ur_conveyor/conveyor_node.py - Dual-arm environment
mujoco_ur_rl_ros2/envs/ur_dual_arm_env.py - MongoDB warehouse
src/warehouse_ros_mongo/src/database_connection.cpp - Task visualization
src/moveit_task_constructor/visualization/motion_planning_tasks/src/task_display.cpp
Other components
- Operator
Connections 23
- Operator → Gazebo simulation: launches simulation
README.md - Operator → MTC pick-place task: starts pick-place
README.md - Gazebo simulation → Simulation control: loads hardware system
- Operator → MoveIt setup: starts planning
README.md - Scene client → Planning scene service: requests scene
ur_mtc_pick_place_demo/src/get_planning_scene_client.cpp - Planning scene service → Object segmentation: segments scene cloud
- Planning scene service → MTC pick-place task: provides collision scene
README.md - MTC pick-place task → Task stages and solvers: builds task stages
- Operator → LLM task planner: sends task command
README.md - LLM task planner → Ollama client: requests task plan
ur_llm_planner/ur_llm_planner/llm_planner_node.py - LLM task planner → Motion executor: dispatches tasks
ur_llm_planner/ur_llm_planner/llm_planner_node.py - Operator → Behavior tree planner: starts task planner
- Operator → Grasp detection: requests grasp detection
- Grasp detection → Cylinder grasp estimator: uses cylinder estimator
ur_grasp/ur_grasp/grasp_node.py - Operator → RL policy: starts learned policy
- Operator → Flow policy inference: starts flow inference
- Flow policy inference → Flow-matching model: runs policy model
ur_flow_policy/ur_flow_policy/inference_node.py - Operator → Demonstration collector: records demonstrations
- Operator → Force control: starts force control
- Operator → Conveyor simulation: starts conveyor demo
- Operator → Dual-arm environment: runs dual-arm setup
- Operator → MongoDB warehouse: configures scene storage
README.md - MTC pick-place task → Task visualization: visualizes task