48 """Launch file for rviz"""
49 ld = LaunchDescription()
53 DeclareLaunchArgument(
55 default_value=str(moveit_config.package_path /
"config/moveit.rviz"),
60 moveit_config.planning_pipelines,
61 moveit_config.robot_description_kinematics,
62 moveit_config.joint_limits,
71 arguments=[
"-d", LaunchConfiguration(
"rviz_config")],
72 parameters=rviz_parameters,
137 """Launch file for warehouse database"""
138 ld = LaunchDescription()
140 DeclareLaunchArgument(
141 "moveit_warehouse_database_path",
143 moveit_config.package_path /
"default_warehouse_mongo_db"
150 ld.add_action(DeclareLaunchArgument(
"moveit_warehouse_port", default_value=
"33829"))
154 DeclareLaunchArgument(
"moveit_warehouse_host", default_value=
"localhost")
161 "database_path": LaunchConfiguration(
"moveit_warehouse_database_path"),
162 "warehouse_port": LaunchConfiguration(
"moveit_warehouse_port"),
163 "warehouse_host": LaunchConfiguration(
"moveit_warehouse_host"),
164 "warehouse_exec":
"mongod",
165 "warehouse_plugin":
"warehouse_ros_mongo::MongoDatabaseConnection",
170 package=
"warehouse_ros_mongo",
171 executable=
"mongo_wrapper_ros.py",
174 parameters=db_parameters,
176 ld.add_action(db_node)
180 package=
"moveit_ros_warehouse",
181 executable=
"moveit_init_demo_warehouse",
183 condition=IfCondition(LaunchConfiguration(
"reset")),
185 ld.add_action(reset_node)
191 ld = LaunchDescription()
202 DeclareLaunchArgument(
204 default_value=moveit_config.move_group_capabilities[
"capabilities"],
209 DeclareLaunchArgument(
210 "disable_capabilities",
211 default_value=moveit_config.move_group_capabilities[
"disable_capabilities"],
219 should_publish = LaunchConfiguration(
"publish_monitored_planning_scene")
221 move_group_configuration = {
222 "publish_robot_description_semantic":
True,
223 "allow_trajectory_execution": LaunchConfiguration(
"allow_trajectory_execution"),
225 "capabilities": ParameterValue(
226 LaunchConfiguration(
"capabilities"), value_type=str
228 "disable_capabilities": ParameterValue(
229 LaunchConfiguration(
"disable_capabilities"), value_type=str
232 "publish_planning_scene": should_publish,
233 "publish_geometry_updates": should_publish,
234 "publish_state_updates": should_publish,
235 "publish_transforms_updates": should_publish,
236 "monitor_dynamics":
False,
239 move_group_params = [
240 moveit_config.to_dict(),
241 move_group_configuration,
246 package=
"moveit_ros_move_group",
247 executable=
"move_group",
248 commands_file=str(moveit_config.package_path /
"launch" /
"gdb_settings.gdb"),
250 parameters=move_group_params,
251 extra_debug_args=[
"--debug"],
253 additional_env={
"DISPLAY": os.environ.get(
"DISPLAY",
"")},
260 Launches a self contained demo
262 launch_package_path is optional to use different launch and config packages
265 * static_virtual_joint_tfs
266 * robot_state_publisher
269 * warehouse_db (optional)
270 * ros2_control_node + controller spawners
272 if launch_package_path ==
None:
273 launch_package_path = moveit_config.package_path
275 ld = LaunchDescription()
280 description=
"By default, we do not start a database (it can be large)",
287 description=
"By default, we are not in debug mode",
292 virtual_joints_launch = (
293 launch_package_path /
"launch/static_virtual_joint_tfs.launch.py"
296 if virtual_joints_launch.exists():
298 IncludeLaunchDescription(
299 PythonLaunchDescriptionSource(str(virtual_joints_launch)),
305 IncludeLaunchDescription(
306 PythonLaunchDescriptionSource(
307 str(launch_package_path /
"launch/rsp.launch.py")
313 IncludeLaunchDescription(
314 PythonLaunchDescriptionSource(
315 str(launch_package_path /
"launch/move_group.launch.py")
322 IncludeLaunchDescription(
323 PythonLaunchDescriptionSource(
324 str(launch_package_path /
"launch/moveit_rviz.launch.py")
326 condition=IfCondition(LaunchConfiguration(
"use_rviz")),
332 IncludeLaunchDescription(
333 PythonLaunchDescriptionSource(
334 str(launch_package_path /
"launch/warehouse_db.launch.py")
336 condition=IfCondition(LaunchConfiguration(
"db")),
343 package=
"controller_manager",
344 executable=
"ros2_control_node",
346 str(moveit_config.package_path /
"config/ros2_controllers.yaml"),
349 (
"/controller_manager/robot_description",
"/robot_description"),
355 IncludeLaunchDescription(
356 PythonLaunchDescriptionSource(
357 str(launch_package_path /
"launch/spawn_controllers.launch.py")