diff --git a/Mybuddy/mybuddy_moveit/.setup_assistant b/Mybuddy/mybuddy_moveit/.setup_assistant index 1c84a83..fa016a5 100644 --- a/Mybuddy/mybuddy_moveit/.setup_assistant +++ b/Mybuddy/mybuddy_moveit/.setup_assistant @@ -2,10 +2,10 @@ moveit_setup_assistant_config: URDF: package: mycobot_description relative_path: urdf/mybuddy/mybuddy.urdf - xacro_args: "--inorder " + xacro_args: "" SRDF: relative_path: config/firefighter.srdf CONFIG: - author_name: hzj - author_email: zijun.huang@elephantrobotics.com - generated_timestamp: 1655121131 \ No newline at end of file + author_name: wangweijian + author_email: weijian.wang@elephatrobotics.com + generated_timestamp: 1661409645 \ No newline at end of file diff --git a/Mybuddy/mybuddy_moveit/CMakeLists.txt b/Mybuddy/mybuddy_moveit/CMakeLists.txt index 8665bd7..77365b4 100644 --- a/Mybuddy/mybuddy_moveit/CMakeLists.txt +++ b/Mybuddy/mybuddy_moveit/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 2.8.3) +cmake_minimum_required(VERSION 3.1.3) project(mybuddy_moveit) find_package(catkin REQUIRED) diff --git a/Mybuddy/mybuddy_moveit/config/cartesian_limits.yaml b/Mybuddy/mybuddy_moveit/config/cartesian_limits.yaml new file mode 100644 index 0000000..7df72f6 --- /dev/null +++ b/Mybuddy/mybuddy_moveit/config/cartesian_limits.yaml @@ -0,0 +1,5 @@ +cartesian_limits: + max_trans_vel: 1 + max_trans_acc: 2.25 + max_trans_dec: -5 + max_rot_vel: 1.57 diff --git a/Mybuddy/mybuddy_moveit/config/chomp_planning.yaml b/Mybuddy/mybuddy_moveit/config/chomp_planning.yaml index 75258e5..eb9c912 100644 --- a/Mybuddy/mybuddy_moveit/config/chomp_planning.yaml +++ b/Mybuddy/mybuddy_moveit/config/chomp_planning.yaml @@ -7,12 +7,12 @@ learning_rate: 0.01 smoothness_cost_velocity: 0.0 smoothness_cost_acceleration: 1.0 smoothness_cost_jerk: 0.0 -ridge_factor: 0.01 +ridge_factor: 0.0 use_pseudo_inverse: false pseudo_inverse_ridge_factor: 1e-4 joint_update_limit: 0.1 -collision_clearence: 0.2 +collision_clearance: 0.2 collision_threshold: 0.07 use_stochastic_descent: true -enable_failure_recovery: true -max_recovery_attempts: 5 \ No newline at end of file +enable_failure_recovery: false +max_recovery_attempts: 5 diff --git a/Mybuddy/mybuddy_moveit/config/fake_controllers.yaml b/Mybuddy/mybuddy_moveit/config/fake_controllers.yaml index 98abc30..068dd2f 100644 --- a/Mybuddy/mybuddy_moveit/config/fake_controllers.yaml +++ b/Mybuddy/mybuddy_moveit/config/fake_controllers.yaml @@ -1,5 +1,6 @@ controller_list: - name: fake_right_arm_controller + type: $(arg fake_execution_type) joints: - base_link1 - joint1_R @@ -9,6 +10,7 @@ controller_list: - joint5_R - joint6_R - name: fake_left_arm_controller + type: $(arg fake_execution_type) joints: - base_link1 - joint1_L @@ -18,20 +20,13 @@ controller_list: - joint5_L - joint6_L - name: fake_waist_controller + type: $(arg fake_execution_type) joints: - base_link1 - - name: fake_all_controller - joints: - - base_link1 - - joint1_L - - joint2_L - - joint3_L - - joint4_L - - joint5_L - - joint6_L - - joint1_R - - joint2_R - - joint3_R - - joint4_R - - joint5_R - - joint6_R \ No newline at end of file +initial: # Define initial robot poses per group + - group: right_arm + pose: init_right + - group: left_arm + pose: init_left + - group: waist + pose: init_waist \ No newline at end of file diff --git a/Mybuddy/mybuddy_moveit/config/firefighter.srdf b/Mybuddy/mybuddy_moveit/config/firefighter.srdf index 9b92fc1..1857dd7 100644 --- a/Mybuddy/mybuddy_moveit/config/firefighter.srdf +++ b/Mybuddy/mybuddy_moveit/config/firefighter.srdf @@ -1,4 +1,4 @@ - + - + - + - - - - - - + - - - - - - - + + + + + + + - - - - - - - - - - - - - - - - - - - - - - + + + + + + + - + - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Mybuddy/mybuddy_moveit/config/gazebo_controllers.yaml b/Mybuddy/mybuddy_moveit/config/gazebo_controllers.yaml new file mode 100644 index 0000000..e4d2eb0 --- /dev/null +++ b/Mybuddy/mybuddy_moveit/config/gazebo_controllers.yaml @@ -0,0 +1,4 @@ +# Publish joint_states +joint_state_controller: + type: joint_state_controller/JointStateController + publish_rate: 50 diff --git a/Mybuddy/mybuddy_moveit/config/joint_limits.yaml b/Mybuddy/mybuddy_moveit/config/joint_limits.yaml index 4062553..d44e6de 100644 --- a/Mybuddy/mybuddy_moveit/config/joint_limits.yaml +++ b/Mybuddy/mybuddy_moveit/config/joint_limits.yaml @@ -1,4 +1,10 @@ # joint_limits.yaml allows the dynamics properties specified in the URDF to be overwritten or augmented as needed + +# For beginners, we downscale velocity and acceleration limits. +# You can always specify higher scaling factors (<= 1.0) in your motion requests. # Increase the values below to 1.0 to always move at maximum speed. +default_velocity_scaling_factor: 0.1 +default_acceleration_scaling_factor: 0.1 + # Specific joint properties can be changed with the keys [max_position, min_position, max_velocity, max_acceleration] # Joint limits can be turned off with [has_velocity_limits, has_acceleration_limits] joint_limits: diff --git a/Mybuddy/mybuddy_moveit/config/kinematics.yaml b/Mybuddy/mybuddy_moveit/config/kinematics.yaml index b0a1f25..6d4a865 100644 --- a/Mybuddy/mybuddy_moveit/config/kinematics.yaml +++ b/Mybuddy/mybuddy_moveit/config/kinematics.yaml @@ -2,19 +2,11 @@ right_arm: kinematics_solver: kdl_kinematics_plugin/KDLKinematicsPlugin kinematics_solver_search_resolution: 0.005 kinematics_solver_timeout: 0.005 - kinematics_solver_attempts: 3 left_arm: kinematics_solver: kdl_kinematics_plugin/KDLKinematicsPlugin kinematics_solver_search_resolution: 0.005 kinematics_solver_timeout: 0.005 - kinematics_solver_attempts: 3 waist: kinematics_solver: kdl_kinematics_plugin/KDLKinematicsPlugin kinematics_solver_search_resolution: 0.005 - kinematics_solver_timeout: 0.005 - kinematics_solver_attempts: 3 -all: - kinematics_solver: kdl_kinematics_plugin/KDLKinematicsPlugin - kinematics_solver_search_resolution: 0.005 - kinematics_solver_timeout: 0.005 - kinematics_solver_attempts: 3 \ No newline at end of file + kinematics_solver_timeout: 0.005 \ No newline at end of file diff --git a/Mybuddy/mybuddy_moveit/config/ompl_planning.yaml b/Mybuddy/mybuddy_moveit/config/ompl_planning.yaml index 9c3f1bc..192af7f 100644 --- a/Mybuddy/mybuddy_moveit/config/ompl_planning.yaml +++ b/Mybuddy/mybuddy_moveit/config/ompl_planning.yaml @@ -1,4 +1,11 @@ planner_configs: + AnytimePathShortening: + type: geometric::AnytimePathShortening + shortcut: true # Attempt to shortcut all new solution paths + hybridize: true # Compute hybrid solution trajectories + max_hybrid_paths: 24 # Number of hybrid paths generated per iteration + num_planners: 4 # The number of default planners to use for planning + planners: "" # A comma-separated list of planner types (e.g., "PRM,EST,RRTConnect"Optionally, planner parameters can be passed to change the default:"PRM[max_nearest_neighbors=5],EST[goal_bias=.5],RRT[range=10. goal_bias=.1]" SBL: type: geometric::SBL range: 0.0 # Max motion added to tree. ==> maxDistance_ default: 0.0, if 0.0, set on setup() @@ -123,6 +130,7 @@ planner_configs: right_arm: default_planner_config: RRTConnect planner_configs: + - AnytimePathShortening - SBL - EST - LBKPIECE @@ -151,6 +159,7 @@ right_arm: left_arm: default_planner_config: RRTConnect planner_configs: + - AnytimePathShortening - SBL - EST - LBKPIECE @@ -179,6 +188,7 @@ left_arm: waist: default_planner_config: RRTConnect planner_configs: + - AnytimePathShortening - SBL - EST - LBKPIECE @@ -202,31 +212,3 @@ waist: - LazyPRMstar - SPARS - SPARStwo -all: - default_planner_config: RRTConnect - planner_configs: - - SBL - - EST - - LBKPIECE - - BKPIECE - - KPIECE - - RRT - - RRTConnect - - RRTstar - - TRRT - - PRM - - PRMstar - - FMT - - BFMT - - PDST - - STRIDE - - BiTRRT - - LBTRRT - - BiEST - - ProjEST - - LazyPRM - - LazyPRMstar - - SPARS - - SPARStwo - projection_evaluator: joints(base_link1,joint1_L) - longest_valid_segment_fraction: 0.005 \ No newline at end of file diff --git a/Mybuddy/mybuddy_moveit/config/ros_controllers.yaml b/Mybuddy/mybuddy_moveit/config/ros_controllers.yaml index 7d749cb..7b6880a 100644 --- a/Mybuddy/mybuddy_moveit/config/ros_controllers.yaml +++ b/Mybuddy/mybuddy_moveit/config/ros_controllers.yaml @@ -1,13 +1,51 @@ -# Simulation settings for using moveit_sim_controllers -moveit_sim_hw_interface: - joint_model_group: right_arm - joint_model_group_pose: init_right -# Settings for ros_control_boilerplate control loop -generic_hw_control_loop: - loop_hz: 300 - cycle_time_error_threshold: 0.01 -# Settings for ros_control hardware interface -hardware_interface: +right_arm_controller: + type: effort_controllers/JointTrajectoryController + joints: + - base_link1 + - joint1_R + - joint2_R + - joint3_R + - joint4_R + - joint5_R + - joint6_R + gains: + base_link1: + p: 100 + d: 1 + i: 1 + i_clamp: 1 + joint1_R: + p: 100 + d: 1 + i: 1 + i_clamp: 1 + joint2_R: + p: 100 + d: 1 + i: 1 + i_clamp: 1 + joint3_R: + p: 100 + d: 1 + i: 1 + i_clamp: 1 + joint4_R: + p: 100 + d: 1 + i: 1 + i_clamp: 1 + joint5_R: + p: 100 + d: 1 + i: 1 + i_clamp: 1 + joint6_R: + p: 100 + d: 1 + i: 1 + i_clamp: 1 +left_arm_controller: + type: effort_controllers/JointTrajectoryController joints: - base_link1 - joint1_L @@ -16,100 +54,49 @@ hardware_interface: - joint4_L - joint5_L - joint6_L - - joint1_R - - joint2_R - - joint3_R - - joint4_R - - joint5_R - - joint6_R - sim_control_mode: 1 # 0: position, 1: velocity -# Publish all joint states -# Creates the /joint_states topic necessary in ROS -joint_state_controller: - type: joint_state_controller/JointStateController - publish_rate: 50 -controller_list: - - name: plan_group_controller - action_ns: follow_joint_trajectory - default: True - type: FollowJointTrajectory - joints: - - base_link1 - - joint1_L - - joint2_L - - joint3_L - - joint4_L - - joint5_L - - joint6_L - - joint1_R - - joint2_R - - joint3_R - - joint4_R - - joint5_R - - joint6_R - - name: right_arm_controller - action_ns: follow_joint_trajectory - default: True - type: FollowJointTrajectory - joints: - - base_link1 - - joint1_R - - joint2_R - - joint3_R - - joint4_R - - joint5_R - - joint6_R - - name: left_arm_controller - action_ns: follow_joint_trajectory - default: True - type: FollowJointTrajectory - joints: - - base_link1 - - joint1_L - - joint2_L - - joint3_L - - joint4_L - - joint5_L - - joint6_L - - name: both_arms_controller - action_ns: follow_joint_trajectory - default: True - type: FollowJointTrajectory - joints: - - base_link1 - - joint1_L - - joint2_L - - joint3_L - - joint4_L - - joint5_L - - joint6_L - - joint1_R - - joint2_R - - joint3_R - - joint4_R - - joint5_R - - joint6_R - - name: waist_controller - action_ns: follow_joint_trajectory - default: True - type: FollowJointTrajectory - joints: - [] - - name: all_controller - action_ns: follow_joint_trajectory - default: True - type: FollowJointTrajectory - joints: - - base_link1 - - joint1_L - - joint2_L - - joint3_L - - joint4_L - - joint5_L - - joint6_L - - joint1_R - - joint2_R - - joint3_R - - joint4_R - - joint5_R - - joint6_R \ No newline at end of file + gains: + base_link1: + p: 100 + d: 1 + i: 1 + i_clamp: 1 + joint1_L: + p: 100 + d: 1 + i: 1 + i_clamp: 1 + joint2_L: + p: 100 + d: 1 + i: 1 + i_clamp: 1 + joint3_L: + p: 100 + d: 1 + i: 1 + i_clamp: 1 + joint4_L: + p: 100 + d: 1 + i: 1 + i_clamp: 1 + joint5_L: + p: 100 + d: 1 + i: 1 + i_clamp: 1 + joint6_L: + p: 100 + d: 1 + i: 1 + i_clamp: 1 +waist_controller: + type: effort_controllers/JointTrajectoryController + joints: + - base_link1 + gains: + base_link1: + p: 100 + d: 1 + i: 1 + i_clamp: 1 \ No newline at end of file diff --git a/Mybuddy/mybuddy_moveit/config/sensors_3d.yaml b/Mybuddy/mybuddy_moveit/config/sensors_3d.yaml index a4bb13e..51010a3 100644 --- a/Mybuddy/mybuddy_moveit/config/sensors_3d.yaml +++ b/Mybuddy/mybuddy_moveit/config/sensors_3d.yaml @@ -1,10 +1,2 @@ -# The name of this file shouldn't be changed, or else the Setup Assistant won't detect it sensors: - - filtered_cloud_topic: filtered_cloud - max_range: 5.0 - max_update_rate: 1.0 - padding_offset: 0.1 - padding_scale: 1.0 - point_cloud_topic: /head_mount_kinect/depth_registered/points - point_subsample: 1 - sensor_plugin: occupancy_map_monitor/PointCloudOctomapUpdater \ No newline at end of file + [] \ No newline at end of file diff --git a/Mybuddy/mybuddy_moveit/config/simple_moveit_controllers.yaml b/Mybuddy/mybuddy_moveit/config/simple_moveit_controllers.yaml new file mode 100644 index 0000000..24d21c5 --- /dev/null +++ b/Mybuddy/mybuddy_moveit/config/simple_moveit_controllers.yaml @@ -0,0 +1,31 @@ +controller_list: + - name: right_arm_controller + action_ns: follow_joint_trajectory + type: FollowJointTrajectory + default: True + joints: + - base_link1 + - joint1_R + - joint2_R + - joint3_R + - joint4_R + - joint5_R + - joint6_R + - name: left_arm_controller + action_ns: follow_joint_trajectory + type: FollowJointTrajectory + default: True + joints: + - base_link1 + - joint1_L + - joint2_L + - joint3_L + - joint4_L + - joint5_L + - joint6_L + - name: waist_controller + action_ns: follow_joint_trajectory + type: FollowJointTrajectory + default: True + joints: + - base_link1 \ No newline at end of file diff --git a/Mybuddy/mybuddy_moveit/config/stomp_planning.yaml b/Mybuddy/mybuddy_moveit/config/stomp_planning.yaml new file mode 100644 index 0000000..cbed236 --- /dev/null +++ b/Mybuddy/mybuddy_moveit/config/stomp_planning.yaml @@ -0,0 +1,117 @@ +stomp/right_arm: + group_name: right_arm + optimization: + num_timesteps: 60 + num_iterations: 40 + num_iterations_after_valid: 0 + num_rollouts: 30 + max_rollouts: 30 + initialization_method: 1 # [1 : LINEAR_INTERPOLATION, 2 : CUBIC_POLYNOMIAL, 3 : MININUM_CONTROL_COST] + control_cost_weight: 0.0 + task: + noise_generator: + - class: stomp_moveit/NormalDistributionSampling + stddev: [0.05, 0.05, 0.05, 0.05, 0.05, 0.05, 0.05] + cost_functions: + - class: stomp_moveit/CollisionCheck + collision_penalty: 1.0 + cost_weight: 1.0 + kernel_window_percentage: 0.2 + longest_valid_joint_move: 0.05 + noisy_filters: + - class: stomp_moveit/JointLimits + lock_start: True + lock_goal: True + - class: stomp_moveit/MultiTrajectoryVisualization + line_width: 0.02 + rgb: [255, 255, 0] + marker_array_topic: stomp_trajectories + marker_namespace: noisy + update_filters: + - class: stomp_moveit/PolynomialSmoother + poly_order: 6 + - class: stomp_moveit/TrajectoryVisualization + line_width: 0.05 + rgb: [0, 191, 255] + error_rgb: [255, 0, 0] + publish_intermediate: True + marker_topic: stomp_trajectory + marker_namespace: optimized +stomp/left_arm: + group_name: left_arm + optimization: + num_timesteps: 60 + num_iterations: 40 + num_iterations_after_valid: 0 + num_rollouts: 30 + max_rollouts: 30 + initialization_method: 1 # [1 : LINEAR_INTERPOLATION, 2 : CUBIC_POLYNOMIAL, 3 : MININUM_CONTROL_COST] + control_cost_weight: 0.0 + task: + noise_generator: + - class: stomp_moveit/NormalDistributionSampling + stddev: [0.05, 0.05, 0.05, 0.05, 0.05, 0.05, 0.05] + cost_functions: + - class: stomp_moveit/CollisionCheck + collision_penalty: 1.0 + cost_weight: 1.0 + kernel_window_percentage: 0.2 + longest_valid_joint_move: 0.05 + noisy_filters: + - class: stomp_moveit/JointLimits + lock_start: True + lock_goal: True + - class: stomp_moveit/MultiTrajectoryVisualization + line_width: 0.02 + rgb: [255, 255, 0] + marker_array_topic: stomp_trajectories + marker_namespace: noisy + update_filters: + - class: stomp_moveit/PolynomialSmoother + poly_order: 6 + - class: stomp_moveit/TrajectoryVisualization + line_width: 0.05 + rgb: [0, 191, 255] + error_rgb: [255, 0, 0] + publish_intermediate: True + marker_topic: stomp_trajectory + marker_namespace: optimized +stomp/waist: + group_name: waist + optimization: + num_timesteps: 60 + num_iterations: 40 + num_iterations_after_valid: 0 + num_rollouts: 30 + max_rollouts: 30 + initialization_method: 1 # [1 : LINEAR_INTERPOLATION, 2 : CUBIC_POLYNOMIAL, 3 : MININUM_CONTROL_COST] + control_cost_weight: 0.0 + task: + noise_generator: + - class: stomp_moveit/NormalDistributionSampling + stddev: [0.05] + cost_functions: + - class: stomp_moveit/CollisionCheck + collision_penalty: 1.0 + cost_weight: 1.0 + kernel_window_percentage: 0.2 + longest_valid_joint_move: 0.05 + noisy_filters: + - class: stomp_moveit/JointLimits + lock_start: True + lock_goal: True + - class: stomp_moveit/MultiTrajectoryVisualization + line_width: 0.02 + rgb: [255, 255, 0] + marker_array_topic: stomp_trajectories + marker_namespace: noisy + update_filters: + - class: stomp_moveit/PolynomialSmoother + poly_order: 6 + - class: stomp_moveit/TrajectoryVisualization + line_width: 0.05 + rgb: [0, 191, 255] + error_rgb: [255, 0, 0] + publish_intermediate: True + marker_topic: stomp_trajectory + marker_namespace: optimized \ No newline at end of file diff --git a/Mybuddy/mybuddy_moveit/launch/chomp_planning_pipeline.launch.xml b/Mybuddy/mybuddy_moveit/launch/chomp_planning_pipeline.launch.xml index 56db63c..f2188d2 100644 --- a/Mybuddy/mybuddy_moveit/launch/chomp_planning_pipeline.launch.xml +++ b/Mybuddy/mybuddy_moveit/launch/chomp_planning_pipeline.launch.xml @@ -1,10 +1,23 @@ - - - + + + + - - + + + + - + + + + diff --git a/Mybuddy/mybuddy_moveit/launch/default_warehouse_db.launch b/Mybuddy/mybuddy_moveit/launch/default_warehouse_db.launch index 52d32a5..573890a 100644 --- a/Mybuddy/mybuddy_moveit/launch/default_warehouse_db.launch +++ b/Mybuddy/mybuddy_moveit/launch/default_warehouse_db.launch @@ -5,7 +5,7 @@ - + diff --git a/Mybuddy/mybuddy_moveit/launch/demo.launch b/Mybuddy/mybuddy_moveit/launch/demo.launch index e9e5e23..677a781 100644 --- a/Mybuddy/mybuddy_moveit/launch/demo.launch +++ b/Mybuddy/mybuddy_moveit/launch/demo.launch @@ -1,5 +1,8 @@ + + + @@ -8,49 +11,59 @@ - + - MoveIt!'s "demo" mode replaces the real robot driver with the joint_state_publisher. - The latter one maintains and publishes the current joint configuration of the simulated robot. - It also provides a GUI to move the simulated robot around "manually". - This corresponds to moving around the real robot without the use of MoveIt. - --> + + + + + + - - - - - + - + + - - - - [move_group/fake_controller_joint_states] - - - - - + + + + [move_group/fake_controller_joint_states] + + + + [move_group/fake_controller_joint_states] + + + + + + + + - + + + + - - + + - + diff --git a/Mybuddy/mybuddy_moveit/launch/demo_gazebo.launch b/Mybuddy/mybuddy_moveit/launch/demo_gazebo.launch index e8da2e7..a9f320c 100644 --- a/Mybuddy/mybuddy_moveit/launch/demo_gazebo.launch +++ b/Mybuddy/mybuddy_moveit/launch/demo_gazebo.launch @@ -1,70 +1,21 @@ - - - - - - - - - - + + - - - + - - - - + + + + - - - - - - - - [/joint_states] - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/Mybuddy/mybuddy_moveit/launch/fake_moveit_controller_manager.launch.xml b/Mybuddy/mybuddy_moveit/launch/fake_moveit_controller_manager.launch.xml index 53baaeb..70b221a 100644 --- a/Mybuddy/mybuddy_moveit/launch/fake_moveit_controller_manager.launch.xml +++ b/Mybuddy/mybuddy_moveit/launch/fake_moveit_controller_manager.launch.xml @@ -1,9 +1,12 @@ + + + - + diff --git a/Mybuddy/mybuddy_moveit/launch/gazebo.launch b/Mybuddy/mybuddy_moveit/launch/gazebo.launch index e852e2e..45991bd 100644 --- a/Mybuddy/mybuddy_moveit/launch/gazebo.launch +++ b/Mybuddy/mybuddy_moveit/launch/gazebo.launch @@ -2,22 +2,31 @@ - + - + - + + + - + - + + + + + + diff --git a/Mybuddy/mybuddy_moveit/launch/move_group.launch b/Mybuddy/mybuddy_moveit/launch/move_group.launch index 9406e58..4ff2e39 100644 --- a/Mybuddy/mybuddy_moveit/launch/move_group.launch +++ b/Mybuddy/mybuddy_moveit/launch/move_group.launch @@ -1,12 +1,10 @@ - - + value="gdb -x $(dirname)/gdb_settings.gdb --ex run --args" /> @@ -14,10 +12,11 @@ + - + + - @@ -38,20 +37,46 @@ " /> --> - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + - - + + - + @@ -61,11 +86,10 @@ - - - - - + + + + diff --git a/Mybuddy/mybuddy_moveit/launch/moveit.rviz b/Mybuddy/mybuddy_moveit/launch/moveit.rviz index 0ed4520..a1d64d9 100644 --- a/Mybuddy/mybuddy_moveit/launch/moveit.rviz +++ b/Mybuddy/mybuddy_moveit/launch/moveit.rviz @@ -5,12 +5,10 @@ Panels: Property Tree Widget: Expanded: - /MotionPlanning1 - - /MotionPlanning1/Scene Robot1 - /MotionPlanning1/Planning Request1 - - /MotionPlanning1/Planning Metrics1 - /MotionPlanning1/Planned Path1 - Splitter Ratio: 0.7425600290298462 - Tree Height: 255 + Splitter Ratio: 0.5 + Tree Height: 135 - Class: rviz/Help Name: Help - Class: rviz/Views @@ -43,18 +41,18 @@ Visualization Manager: Plane Cell Count: 10 Reference Frame: Value: true - - Acceleration_Scaling_Factor: 1 + - Acceleration_Scaling_Factor: 0.1 Class: moveit_rviz_plugin/MotionPlanning Enabled: true Move Group Namespace: "" - MoveIt_Allow_Approximate_IK: true + MoveIt_Allow_Approximate_IK: false MoveIt_Allow_External_Program: false MoveIt_Allow_Replanning: false MoveIt_Allow_Sensor_Positioning: false MoveIt_Planning_Attempts: 10 MoveIt_Planning_Time: 5 MoveIt_Use_Cartesian_Path: false - MoveIt_Use_Constraint_Aware_IK: true + MoveIt_Use_Constraint_Aware_IK: false MoveIt_Workspace: Center: X: 0 @@ -165,9 +163,9 @@ Visualization Manager: Colliding Link Color: 255; 0; 0 Goal State Alpha: 1 Goal State Color: 250; 128; 0 - Interactive Marker Size: 0.20000000298023224 + Interactive Marker Size: 0 Joint Violation Color: 255; 0; 255 - Planning Group: right_arm + Planning Group: left_arm Query Goal State: true Query Start State: false Show Workspace: false @@ -178,7 +176,7 @@ Visualization Manager: Scene Geometry: Scene Alpha: 1 Scene Color: 50; 230; 50 - Scene Display Time: 0.20000000298023224 + Scene Display Time: 0.009999999776482582 Show Scene Geometry: true Voxel Coloring: Z-Axis Voxel Rendering: Occupied Voxels @@ -264,7 +262,7 @@ Visualization Manager: Show Robot Collision: false Show Robot Visual: true Value: true - Velocity_Scaling_Factor: 1 + Velocity_Scaling_Factor: 0.1 Enabled: true Global Options: Background Color: 48; 48; 48 @@ -280,31 +278,31 @@ Visualization Manager: Value: true Views: Current: - Class: rviz/XYOrbit - Distance: 2.996500015258789 + Class: rviz/Orbit + Distance: 2 Enable Stereo Rendering: Stereo Eye Separation: 0.05999999865889549 Stereo Focal Distance: 1 Swap Stereo Eyes: false Value: false - Field of View: 0.7853981852531433 + Field of View: 0.75 Focal Point: - X: 0.11356700211763382 - Y: 0.10592000186443329 - Z: 2.2351800055275817e-07 + X: -0.10000000149011612 + Y: 0.25 + Z: 0.30000001192092896 Focal Shape Fixed Size: true Focal Shape Size: 0.05000000074505806 Invert Z Axis: false Name: Current View Near Clip Distance: 0.009999999776482582 - Pitch: 0.5197969675064087 + Pitch: 0.5 Target Frame: base - Yaw: 2.9199492931365967 + Yaw: -0.6232355833053589 Saved: ~ Window Geometry: Displays: collapsed: false - Height: 888 + Height: 848 Help: collapsed: false Hide Left Dock: false @@ -313,9 +311,9 @@ Window Geometry: collapsed: false MotionPlanning - Trajectory Slider: collapsed: false - QMainWindow State: 000000ff00000000fd0000000100000000000002ad0000031efc0200000007fb000000100044006900730070006c006100790073010000003d00000190000000c900fffffffb0000000800480065006c00700000000342000000bb0000006e00fffffffb0000000a0056006900650077007300000003b0000000b0000000a400fffffffb0000000c00430061006d00650072006100000002ff000001610000000000000000fb0000001e004d006f00740069006f006e00200050006c0061006e006e0069006e00670100000374000001890000000000000000fb00000044004d006f00740069006f006e0050006c0061006e006e0069006e00670020002d0020005400720061006a006500630074006f0072007900200053006c00690064006500720000000000ffffffff0000001600000016fb0000001c004d006f00740069006f006e0050006c0061006e006e0069006e006701000001d3000001880000017d00ffffff000004850000031e00000001000000020000000100000002fc0000000100000002000000010000000a0054006f006f006c00730100000000ffffffff0000000000000000 + QMainWindow State: 000000ff00000000fd000000010000000000000203000002f1fc0200000007fb000000100044006900730070006c00610079007301000000410000011c000000dd00fffffffb0000000800480065006c00700000000342000000bb0000007600fffffffb0000000a00560069006500770073000000010c000000a4000000b000fffffffb0000000c00430061006d00650072006100000002ff000001610000000000000000fb0000001e004d006f00740069006f006e00200050006c0061006e006e0069006e00670100000374000001890000000000000000fb00000044004d006f00740069006f006e0050006c0061006e006e0069006e00670020002d0020005400720061006a006500630074006f0072007900200053006c006900640065007201000001630000004a0000004a00fffffffb0000001c004d006f00740069006f006e0050006c0061006e006e0069006e006701000001b30000017f0000017400ffffff00000302000002f100000001000000020000000100000002fc0000000100000002000000010000000a0054006f006f006c00730100000000ffffffff0000000000000000 Views: collapsed: false - Width: 1848 - X: 72 - Y: 27 + Width: 1291 + X: 452 + Y: 28 diff --git a/Mybuddy/mybuddy_moveit/launch/moveit_rviz.launch b/Mybuddy/mybuddy_moveit/launch/moveit_rviz.launch index d4c76c8..a4605c0 100644 --- a/Mybuddy/mybuddy_moveit/launch/moveit_rviz.launch +++ b/Mybuddy/mybuddy_moveit/launch/moveit_rviz.launch @@ -4,13 +4,12 @@ - - - + + + - + args="$(arg command_args)" output="screen"> diff --git a/Mybuddy/mybuddy_moveit/launch/ompl-chomp_planning_pipeline.launch.xml b/Mybuddy/mybuddy_moveit/launch/ompl-chomp_planning_pipeline.launch.xml new file mode 100644 index 0000000..b078992 --- /dev/null +++ b/Mybuddy/mybuddy_moveit/launch/ompl-chomp_planning_pipeline.launch.xml @@ -0,0 +1,19 @@ + + + + + + + + + + + + diff --git a/Mybuddy/mybuddy_moveit/launch/ompl_planning_pipeline.launch.xml b/Mybuddy/mybuddy_moveit/launch/ompl_planning_pipeline.launch.xml index 1b169e2..2a516de 100644 --- a/Mybuddy/mybuddy_moveit/launch/ompl_planning_pipeline.launch.xml +++ b/Mybuddy/mybuddy_moveit/launch/ompl_planning_pipeline.launch.xml @@ -1,21 +1,25 @@ - - + + - - + + - - - + + + + + diff --git a/Mybuddy/mybuddy_moveit/launch/pilz_industrial_motion_planner_planning_pipeline.launch.xml b/Mybuddy/mybuddy_moveit/launch/pilz_industrial_motion_planner_planning_pipeline.launch.xml new file mode 100644 index 0000000..c7c4cf5 --- /dev/null +++ b/Mybuddy/mybuddy_moveit/launch/pilz_industrial_motion_planner_planning_pipeline.launch.xml @@ -0,0 +1,15 @@ + + + + + + + + + + + + + + diff --git a/Mybuddy/mybuddy_moveit/launch/planning_context.launch b/Mybuddy/mybuddy_moveit/launch/planning_context.launch index 0671205..883029b 100644 --- a/Mybuddy/mybuddy_moveit/launch/planning_context.launch +++ b/Mybuddy/mybuddy_moveit/launch/planning_context.launch @@ -14,11 +14,13 @@ + + diff --git a/Mybuddy/mybuddy_moveit/launch/planning_pipeline.launch.xml b/Mybuddy/mybuddy_moveit/launch/planning_pipeline.launch.xml index 97bcd9c..4b4d0d6 100644 --- a/Mybuddy/mybuddy_moveit/launch/planning_pipeline.launch.xml +++ b/Mybuddy/mybuddy_moveit/launch/planning_pipeline.launch.xml @@ -5,6 +5,6 @@ - + diff --git a/Mybuddy/mybuddy_moveit/launch/ros_control_moveit_controller_manager.launch.xml b/Mybuddy/mybuddy_moveit/launch/ros_control_moveit_controller_manager.launch.xml new file mode 100644 index 0000000..9ebc91c --- /dev/null +++ b/Mybuddy/mybuddy_moveit/launch/ros_control_moveit_controller_manager.launch.xml @@ -0,0 +1,4 @@ + + + + diff --git a/Mybuddy/mybuddy_moveit/launch/ros_controllers.launch b/Mybuddy/mybuddy_moveit/launch/ros_controllers.launch index 2476ead..c6b4cd7 100644 --- a/Mybuddy/mybuddy_moveit/launch/ros_controllers.launch +++ b/Mybuddy/mybuddy_moveit/launch/ros_controllers.launch @@ -6,6 +6,6 @@ + output="screen" args="right_arm_controller left_arm_controller waist_controller "/> diff --git a/Mybuddy/mybuddy_moveit/launch/run_benchmark_ompl.launch b/Mybuddy/mybuddy_moveit/launch/run_benchmark_ompl.launch index 99263e0..38b71f8 100644 --- a/Mybuddy/mybuddy_moveit/launch/run_benchmark_ompl.launch +++ b/Mybuddy/mybuddy_moveit/launch/run_benchmark_ompl.launch @@ -4,18 +4,17 @@ - + - + - diff --git a/Mybuddy/mybuddy_moveit/launch/sensor_manager.launch.xml b/Mybuddy/mybuddy_moveit/launch/sensor_manager.launch.xml index bd27281..ff2be73 100644 --- a/Mybuddy/mybuddy_moveit/launch/sensor_manager.launch.xml +++ b/Mybuddy/mybuddy_moveit/launch/sensor_manager.launch.xml @@ -12,6 +12,6 @@ - + diff --git a/Mybuddy/mybuddy_moveit/launch/setup_assistant.launch b/Mybuddy/mybuddy_moveit/launch/setup_assistant.launch index d69b6b0..dd677c2 100644 --- a/Mybuddy/mybuddy_moveit/launch/setup_assistant.launch +++ b/Mybuddy/mybuddy_moveit/launch/setup_assistant.launch @@ -1,4 +1,4 @@ - + @@ -8,8 +8,9 @@ diff --git a/Mybuddy/mybuddy_moveit/launch/simple_moveit_controller_manager.launch.xml b/Mybuddy/mybuddy_moveit/launch/simple_moveit_controller_manager.launch.xml new file mode 100644 index 0000000..5f7fac6 --- /dev/null +++ b/Mybuddy/mybuddy_moveit/launch/simple_moveit_controller_manager.launch.xml @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/Mybuddy/mybuddy_moveit/launch/stomp_planning_pipeline.launch.xml b/Mybuddy/mybuddy_moveit/launch/stomp_planning_pipeline.launch.xml new file mode 100644 index 0000000..d497d10 --- /dev/null +++ b/Mybuddy/mybuddy_moveit/launch/stomp_planning_pipeline.launch.xml @@ -0,0 +1,25 @@ + + + + + + + + + + + + + + + + + + + + diff --git a/Mybuddy/mybuddy_moveit/launch/trajectory_execution.launch.xml b/Mybuddy/mybuddy_moveit/launch/trajectory_execution.launch.xml index 695cdf7..20c3dfc 100644 --- a/Mybuddy/mybuddy_moveit/launch/trajectory_execution.launch.xml +++ b/Mybuddy/mybuddy_moveit/launch/trajectory_execution.launch.xml @@ -1,8 +1,11 @@ + - + + + - + @@ -13,8 +16,8 @@ - - - + + diff --git a/Mybuddy/mybuddy_moveit/launch/warehouse.launch b/Mybuddy/mybuddy_moveit/launch/warehouse.launch index 620cd4d..0712e67 100644 --- a/Mybuddy/mybuddy_moveit/launch/warehouse.launch +++ b/Mybuddy/mybuddy_moveit/launch/warehouse.launch @@ -4,7 +4,7 @@ - + diff --git a/Mybuddy/mybuddy_moveit/package.xml b/Mybuddy/mybuddy_moveit/package.xml index 9e6e7d7..a104aa1 100644 --- a/Mybuddy/mybuddy_moveit/package.xml +++ b/Mybuddy/mybuddy_moveit/package.xml @@ -3,10 +3,10 @@ mybuddy_moveit 0.3.0 - An automatically generated package with all the configuration and launch files for using the firefighter with the MoveIt! Motion Planning Framework + An automatically generated package with all the configuration and launch files for using the firefighter with the MoveIt Motion Planning Framework - hzj - hzj + wangweijian + wangweijian BSD @@ -22,12 +22,19 @@ moveit_planners_ompl moveit_ros_visualization moveit_setup_assistant + moveit_simple_controller_manager joint_state_publisher + joint_state_publisher_gui robot_state_publisher + rviz + tf2_ros xacro + + + - mycobot_description mycobot_description diff --git a/Mybuddy/mybuddy_moveit/scripts/sync_plan.py b/Mybuddy/mybuddy_moveit/scripts/sync_plan.py index 5748108..55652cf 100755 --- a/Mybuddy/mybuddy_moveit/scripts/sync_plan.py +++ b/Mybuddy/mybuddy_moveit/scripts/sync_plan.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python2 +#!/usr/bin/env python3 import time import rospy import os @@ -30,7 +30,8 @@ def callback(data): time.sleep(0.02) # mb.send_radians(3,data_list3, 50) # time.sleep(0.02) - mb.set_encoder(3,1,data_list3[0]*4096/(2*math.pi)+2048,1) + # mb.set_encoder(3,1,data_list3[0]*4096/(2*math.pi)+2048,1) + mb.send_angle(3, 1, data_list3[0]* (180 / math.pi), 10) time.sleep(0.02) def listener():