-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Maintain and merge 280M5 ros gripper and support Python3
- Loading branch information
Showing
66 changed files
with
4,767 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
mycobot_280/mycobot_280/launch/mycobot_follow_gripper.launch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<launch> | ||
<!-- Load URDF file,加载URDF文件 --> | ||
<!-- <arg name="model" default="$(find mycobot_description)/urdf/mycobot/mycobot_urdf.urdf"/> --> | ||
<!-- <arg name="model" default="$(find mycobot_description)/urdf/mycobot/mycobot_with_gripper_up.urdf"/> --> | ||
<arg name="model" default="$(find mycobot_description)/urdf/mycobot/mycobot_with_gripper_parallel.urdf"/> | ||
|
||
|
||
|
||
<arg name="rvizconfig" default="$(find mycobot_280)/config/mycobot.rviz" /> | ||
|
||
<param name="robot_description" command="$(find xacro)/xacro --inorder $(arg model)" /> | ||
<!-- Combinejoin values to TF ,将值合并到TF--> | ||
<node name="robot_state_publisher" pkg="robot_state_publisher" type="robot_state_publisher" > | ||
<rosparam param="source_list" subst_value="true">["joint_states"]</rosparam> | ||
</node> | ||
<!-- show in Rviza,显示在Rviz --> | ||
<node name="rviz" pkg="rviz" type="rviz" args="-d $(arg rvizconfig)" required="true" /> | ||
</launch> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<launch> | ||
<!-- Select connecting device and serial port ,选择连接设备及串口--> | ||
<arg name="port" default="/dev/ttyUSB0" /> | ||
<arg name="baud" default="115200" /> | ||
|
||
<!-- <arg name="model" default="$(find mycobot_description)/urdf/mycobot/mycobot_urdf.urdf"/> --> | ||
<!-- <arg name="model" default="$(find mycobot_description)/urdf/mycobot/mycobot_with_gripper_up.urdf"/> --> | ||
<arg name="model" default="$(find mycobot_description)/urdf/mycobot/mycobot_with_gripper_parallel.urdf"/> | ||
<arg name="rvizconfig" default="$(find mycobot_280)/config/mycobot.rviz" /> | ||
<arg name="gui" default="false" /> | ||
|
||
<param name="robot_description" command="$(find xacro)/xacro --inorder $(arg model)" /> | ||
|
||
<!-- Combinejoin values to TF ,将值合并到TF--> | ||
<node name="robot_state_publisher" pkg="robot_state_publisher" type="robot_state_publisher" /> | ||
<!-- Show in Rviz ,显示在Rviz--> | ||
<node name="rviz" pkg="rviz" type="rviz" args="-d $(arg rvizconfig)" required="true" /> | ||
|
||
<include file="$(find mycobot_communication)/launch/communication_service.launch"> | ||
<arg name="port" value="$(arg port)" /> | ||
<arg name="baud" value="$(arg baud)" /> | ||
</include> | ||
<node name="real_listener" pkg="mycobot_280" type="listen_real.py" /> | ||
<node name="simple_gui" pkg="mycobot_280" type="simple_gui.py" /> | ||
</launch> |
28 changes: 28 additions & 0 deletions
28
mycobot_280/mycobot_280/launch/slider_control_gripper.launch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<launch> | ||
<!-- <arg name="port" default="/dev/ttyUSB0" /> | ||
<arg name="baud" default="115200" /> --> | ||
<!-- Load file model ,加载文件模型--> | ||
<arg name="model" default="$(find mycobot_description)/urdf/mycobot/mycobot_with_gripper_parallel.urdf"/> | ||
<!-- <arg name="model" default="$(find mycobot_description)/urdf/mycobot/mycobot_with_gripper_up.urdf"/> --> | ||
<!-- <arg name="model" default="$(find mycobot_description)/urdf/mycobot/mycobot_urdf.urdf"/> --> | ||
|
||
|
||
<arg name="rvizconfig" default="$(find mycobot_280)/config/mycobot.rviz" /> | ||
<arg name="gui" default="true" /> | ||
|
||
<param name="robot_description" command="$(find xacro)/xacro --inorder $(arg model)" /> | ||
|
||
<!-- Combinejoin values to TF,将值合并到TF --> | ||
<node name="robot_state_publisher" pkg="robot_state_publisher" type="robot_state_publisher" /> | ||
<node name="joint_state_publisher_gui" pkg="joint_state_publisher_gui" type="joint_state_publisher_gui"> | ||
<!-- <param name="use_gui" value="$(arg gui)" /> --> | ||
<!-- <rosparam param="source_list" subst_value="true">["joint_states"]</rosparam> --> | ||
</node> | ||
<!-- Open control script --> | ||
<!-- <node name="control_slider" pkg="mycobot_280" type="slider_control.py"> | ||
<param name="port" type="string" value="$(arg port)" /> | ||
<param name="baud" type="int" value="$(arg baud)" /> | ||
</node> --> | ||
<!-- Show in Rviz ,显示在Rviz--> | ||
<node name="rviz" pkg="rviz" type="rviz" args="-d $(arg rvizconfig)" required="true" /> | ||
</launch> |
25 changes: 25 additions & 0 deletions
25
mycobot_280/mycobot_280/launch/teleop_keyboard_gripper.launch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<launch> | ||
<!-- Select connecting device and serial port ,选择连接设备及串口--> | ||
<arg name="port" default="/dev/ttyUSB0" /> | ||
<arg name="baud" default="115200" /> | ||
|
||
<!-- <arg name="model" default="$(find mycobot_description)/urdf/mycobot/mycobot_urdf.urdf"/> --> | ||
<!-- <arg name="model" default="$(find mycobot_description)/urdf/mycobot/mycobot_with_gripper_up.urdf"/> --> | ||
<arg name="model" default="$(find mycobot_description)/urdf/mycobot/mycobot_with_gripper_parallel.urdf"/> | ||
<arg name="rvizconfig" default="$(find mycobot_280)/config/mycobot.rviz" /> | ||
<arg name="gui" default="false" /> | ||
|
||
<param name="robot_description" command="$(find xacro)/xacro --inorder $(arg model)" /> | ||
|
||
<!-- Combinejoin values to TF ,将值合并到TF--> | ||
<node name="robot_state_publisher" pkg="robot_state_publisher" type="robot_state_publisher" /> | ||
<!-- Show in Rviz ,显示在Rviz--> | ||
<node name="rviz" pkg="rviz" type="rviz" args="-d $(arg rvizconfig)" required="true" /> | ||
|
||
<include file="$(find mycobot_communication)/launch/communication_service.launch"> | ||
<arg name="port" value="$(arg port)" /> | ||
<arg name="baud" value="$(arg baud)" /> | ||
</include> | ||
<!-- listen and pub the real angles ,监听并发布真实角度--> | ||
<node name="real_listener" pkg="mycobot_280" type="listen_real.py" /> | ||
</launch> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#!/usr/bin/env python2 | ||
#!/usr/bin/env python3 | ||
import time | ||
|
||
import rospy | ||
|
Oops, something went wrong.