Skip to content

Commit 2aa6360

Browse files
committed
增加三指 320/630 moveit RVIZ跟随demo
1 parent 26400b5 commit 2aa6360

File tree

100 files changed

+7297
-62
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

100 files changed

+7297
-62
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<launch>
2+
<arg name="model" default="$(find mycobot_description)/urdf/mycobot_320_m5_2022/pro_320_m5_2022_moveit_three_gripper.urdf"/>
3+
<arg name="rvizconfig" default="$(find new_mycobot_320)/config/new_mycobot_320_gripper.rviz" />
4+
5+
<arg name="gui" default="true" />
6+
7+
<param name="robot_description" command="$(find xacro)/xacro --inorder $(arg model)" />
8+
9+
<!-- Combinejoin values to TF -->
10+
<node name="robot_state_publisher" pkg="robot_state_publisher" type="robot_state_publisher" />
11+
<node name="joint_state_publisher_gui" pkg="joint_state_publisher_gui" type="joint_state_publisher_gui">
12+
<param name="use_gui" value="$(arg gui)" />
13+
<!-- <rosparam param="source_list" subst_value="true">["joint_states"]</rosparam> -->
14+
</node>
15+
<!-- Show in Rviz ,显示在Rviz-->
16+
<node name="rviz" pkg="rviz" type="rviz" args="-d $(arg rvizconfig)" required="true" />
17+
</launch>
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
moveit_setup_assistant_config:
2+
URDF:
3+
package: mycobot_description
4+
relative_path: urdf/mycobot_320_m5_2022/pro_320_m5_2022_moveit_three_gripper.urdf
5+
xacro_args: ""
6+
SRDF:
7+
relative_path: config/firefighter.srdf
8+
CONFIG:
9+
author_name: wangweijian
10+
author_email: weijian.wang@elephantrobotics.com
11+
generated_timestamp: 1736922272
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
cmake_minimum_required(VERSION 3.1.3)
2+
project(new_mycobot_320_three_gripper_moveit)
3+
4+
find_package(catkin REQUIRED)
5+
6+
catkin_package()
7+
8+
install(DIRECTORY launch DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}
9+
PATTERN "setup_assistant.launch" EXCLUDE)
10+
install(DIRECTORY config DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION})
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
BSD 2-Clause License
2+
3+
Copyright (c) 2020, Elephant Robotics
4+
All rights reserved.
5+
6+
Redistribution and use in source and binary forms, with or without
7+
modification, are permitted provided that the following conditions are met:
8+
9+
1. Redistributions of source code must retain the above copyright notice, this
10+
list of conditions and the following disclaimer.
11+
12+
2. Redistributions in binary form must reproduce the above copyright notice,
13+
this list of conditions and the following disclaimer in the documentation
14+
and/or other materials provided with the distribution.
15+
16+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
17+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
18+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
19+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
20+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
22+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
23+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
24+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
25+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
cartesian_limits:
2+
max_trans_vel: 1
3+
max_trans_acc: 2.25
4+
max_trans_dec: -5
5+
max_rot_vel: 1.57
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
planning_time_limit: 10.0
2+
max_iterations: 200
3+
max_iterations_after_collision_free: 5
4+
smoothness_cost_weight: 0.1
5+
obstacle_cost_weight: 1.0
6+
learning_rate: 0.01
7+
smoothness_cost_velocity: 0.0
8+
smoothness_cost_acceleration: 1.0
9+
smoothness_cost_jerk: 0.0
10+
ridge_factor: 0.0
11+
use_pseudo_inverse: false
12+
pseudo_inverse_ridge_factor: 1e-4
13+
joint_update_limit: 0.1
14+
collision_clearance: 0.2
15+
collision_threshold: 0.07
16+
use_stochastic_descent: true
17+
enable_failure_recovery: false
18+
max_recovery_attempts: 5
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
controller_list:
2+
- name: fake_arm_group_controller
3+
joints:
4+
- joint2_to_joint1
5+
- joint3_to_joint2
6+
- joint4_to_joint3
7+
- joint5_to_joint4
8+
- joint6_to_joint5
9+
- joint6output_to_joint6
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--This does not replace URDF, and is not an extension of URDF.
3+
This is a format for representing semantic information about the robot structure.
4+
A URDF file must exist for this robot as well, where the joints and the links that are referenced are defined
5+
-->
6+
<robot name="firefighter">
7+
<!--GROUPS: Representation of a set of joints and links. This can be useful for specifying DOF to plan for, defining arms, end effectors, etc-->
8+
<!--LINKS: When a link is specified, the parent joint of that link (if it exists) is automatically included-->
9+
<!--JOINTS: When a joint is specified, the child link of that joint (which will always exist) is automatically included-->
10+
<!--CHAINS: When a chain is specified, all the links along the chain (including endpoints) are included in the group. Additionally, all the joints that are parents to included links are also included. This means that joints along the chain and the parent joint of the base link are included in the group-->
11+
<!--SUBGROUPS: Groups can also be formed by referencing to already defined group names-->
12+
<group name="arm_group">
13+
<joint name="joint2_to_joint1"/>
14+
<joint name="joint3_to_joint2"/>
15+
<joint name="joint4_to_joint3"/>
16+
<joint name="joint5_to_joint4"/>
17+
<joint name="joint6_to_joint5"/>
18+
<joint name="joint6output_to_joint6"/>
19+
<joint name="gripper_to_joint6"/>
20+
</group>
21+
<!--GROUP STATES: Purpose: Define a named state for a particular group, in terms of joint values. This is useful to define states like 'folded arms'-->
22+
<group_state name="init_pose" group="arm_group">
23+
<joint name="joint2_to_joint1" value="0"/>
24+
<joint name="joint3_to_joint2" value="0"/>
25+
<joint name="joint4_to_joint3" value="0"/>
26+
<joint name="joint5_to_joint4" value="0"/>
27+
<joint name="joint6_to_joint5" value="0"/>
28+
<joint name="joint6output_to_joint6" value="0"/>
29+
</group_state>
30+
<!--VIRTUAL JOINT: Purpose: this element defines a virtual joint between a robot link and an external frame of reference (considered fixed with respect to the robot)-->
31+
<virtual_joint name="virtual_joint" type="fixed" parent_frame="world" child_link="base"/>
32+
<!--DISABLE COLLISIONS: By default it is assumed that any link of the robot could potentially come into collision with any other link in the robot. This tag disables collision checking between a specified pair of links. -->
33+
<disable_collisions link1="base" link2="link1" reason="Adjacent"/>
34+
<disable_collisions link1="base" link2="link2" reason="Never"/>
35+
<disable_collisions link1="link1" link2="link2" reason="Adjacent"/>
36+
<disable_collisions link1="link1" link2="link4" reason="Never"/>
37+
<disable_collisions link1="link1" link2="link5" reason="Never"/>
38+
<disable_collisions link1="link2" link2="link3" reason="Adjacent"/>
39+
<disable_collisions link1="link3" link2="link4" reason="Adjacent"/>
40+
<disable_collisions link1="link3" link2="link5" reason="Never"/>
41+
<disable_collisions link1="link3" link2="link6" reason="Never"/>
42+
<disable_collisions link1="link4" link2="link5" reason="Adjacent"/>
43+
<disable_collisions link1="link4" link2="link6" reason="Never"/>
44+
<disable_collisions link1="link4" link2="three_gripper" reason="Never"/>
45+
<disable_collisions link1="link5" link2="link6" reason="Adjacent"/>
46+
<disable_collisions link1="link5" link2="three_gripper" reason="Never"/>
47+
<disable_collisions link1="link6" link2="three_gripper" reason="Adjacent"/>
48+
</robot>
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Publish joint_states
2+
joint_state_controller:
3+
type: joint_state_controller/JointStateController
4+
publish_rate: 50

0 commit comments

Comments
 (0)