Skip to content

Commit

Permalink
Launch file cleanup (moveit#1380)
Browse files Browse the repository at this point in the history
* Launch file cleanup

* Delete deprecated launch files
  • Loading branch information
AndyZe authored and peterdavidfagan committed Jul 14, 2022
1 parent 840887c commit 99ba0f1
Show file tree
Hide file tree
Showing 22 changed files with 67 additions and 503 deletions.
10 changes: 0 additions & 10 deletions moveit_planners/test_configs/prbt_moveit_config/.setup_assistant

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,6 @@ def load_yaml(package_name, file_path):

def generate_launch_description():

db_arg = DeclareLaunchArgument(
"db", default_value="False", description="Database flag"
)

# planning_context
robot_description_config = xacro.process_file(
os.path.join(
Expand Down Expand Up @@ -138,7 +134,6 @@ def generate_launch_description():
)

# RViz
# tutorial_mode = LaunchConfiguration("rviz_tutorial")
rviz_base = os.path.join(
get_package_share_directory("moveit_resources_prbt_moveit_config"), "launch"
)
Expand All @@ -156,7 +151,6 @@ def generate_launch_description():
robot_description_kinematics,
planning_pipelines_config,
],
# condition=UnlessCondition(tutorial_mode),
)

# Static TF
Expand Down Expand Up @@ -190,22 +184,27 @@ def generate_launch_description():
output="screen",
)

# Load controllers
load_controllers = []
for controller in [
"prbt_arm_controller",
"joint_state_broadcaster",
]:
load_controllers += [
ExecuteProcess(
cmd=["ros2 run controller_manager spawner {}".format(controller)],
shell=True,
output="screen",
)
]
joint_state_broadcaster_spawner = Node(
package="controller_manager",
executable="spawner",
arguments=[
"joint_state_broadcaster",
"--controller-manager",
"/controller_manager",
],
)

prbt_arm_controller_spawner = Node(
package="controller_manager",
executable="spawner",
arguments=[
"panda_joint_group_position_controller",
"-c",
"/controller_manager",
],
)

# Warehouse mongodb server
db_config = LaunchConfiguration("db")
mongodb_server_node = Node(
package="warehouse_ros_mongo",
executable="mongo_wrapper_ros.py",
Expand All @@ -215,19 +214,17 @@ def generate_launch_description():
{"warehouse_plugin": "warehouse_ros_mongo::MongoDatabaseConnection"},
],
output="screen",
# condition=IfCondition(db_config)
)

return LaunchDescription(
[
# tutorial_arg,
# db_arg,
rviz_node,
static_tf,
robot_state_publisher,
run_move_group_node,
ros2_control_node,
joint_state_broadcaster_spawner,
prbt_arm_controller_spawner,
mongodb_server_node,
]
+ load_controllers
)

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit 99ba0f1

Please sign in to comment.