diff --git a/CMakeLists.txt b/CMakeLists.txt
index 83f375b..4c02fec 100755
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -45,20 +45,20 @@ catkin_package(
include_directories(include ${catkin_INCLUDE_DIRS} ${OpenCV_INCLUDE_DIRS})
catkin_install_python(PROGRAMS
- scripts/follow_display.py
- scripts/slider_control.py
- scripts/control_marker.py
scripts/mycobot_services.py
scripts/mycobot_topics.py
- scripts/listen_real.py
- scripts/listen_real_of_topic.py
- scripts/teleop_keyboard.py
- scripts/sync_plan.py
+ scripts/mycobot/follow_display.py
+ scripts/mycobot/slider_control.py
+ scripts/mycobot/teleop_keyboard.py
+ scripts/mycobot/listen_real.py
+ scripts/mycobot/listen_real_of_topic.py
+ scripts/mycobot/detect_marker.py
+ scripts/mycobot/following_marker.py
+ scripts/mycobot/follow_and_pump.py
+ scripts/mycobot/simple_gui.py
+ scripts/control_marker.py
+ scripts/mycobot_moveit/sync_plan.py
scripts/client.py
- scripts/detect_marker.py
- scripts/following_marker.py
- scripts/follow_and_pump.py
- scripts/simple_gui.py
scripts/slider_600.py
DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
)
diff --git a/launch/communication_service.launch b/launch/mycobot/communication_service.launch
similarity index 100%
rename from launch/communication_service.launch
rename to launch/mycobot/communication_service.launch
diff --git a/launch/communication_topic.launch b/launch/mycobot/communication_topic.launch
similarity index 100%
rename from launch/communication_topic.launch
rename to launch/mycobot/communication_topic.launch
diff --git a/launch/mycobot_detect_marker.launch b/launch/mycobot/mycobot_detect_marker.launch
similarity index 80%
rename from launch/mycobot_detect_marker.launch
rename to launch/mycobot/mycobot_detect_marker.launch
index 946890a..69894a6 100644
--- a/launch/mycobot_detect_marker.launch
+++ b/launch/mycobot/mycobot_detect_marker.launch
@@ -1,11 +1,11 @@
-
+
-
+
diff --git a/launch/mycobot_detect_marker_with_topic.launch b/launch/mycobot/mycobot_detect_marker_with_topic.launch
similarity index 86%
rename from launch/mycobot_detect_marker_with_topic.launch
rename to launch/mycobot/mycobot_detect_marker_with_topic.launch
index 5d98cc7..7c78be6 100644
--- a/launch/mycobot_detect_marker_with_topic.launch
+++ b/launch/mycobot/mycobot_detect_marker_with_topic.launch
@@ -2,7 +2,7 @@
-
+
@@ -16,7 +16,7 @@
-
+
diff --git a/launch/mycobot_follow.launch b/launch/mycobot/mycobot_follow.launch
similarity index 84%
rename from launch/mycobot_follow.launch
rename to launch/mycobot/mycobot_follow.launch
index ed7af6f..02d8bdd 100644
--- a/launch/mycobot_follow.launch
+++ b/launch/mycobot/mycobot_follow.launch
@@ -1,5 +1,5 @@
-
+
diff --git a/launch/mycobot_simple_gui.launch b/launch/mycobot/mycobot_simple_gui.launch
similarity index 82%
rename from launch/mycobot_simple_gui.launch
rename to launch/mycobot/mycobot_simple_gui.launch
index 9db16e6..30d0451 100644
--- a/launch/mycobot_simple_gui.launch
+++ b/launch/mycobot/mycobot_simple_gui.launch
@@ -2,7 +2,7 @@
-
+
@@ -13,7 +13,7 @@
-
+
diff --git a/launch/mycobot_slider.launch b/launch/mycobot/mycobot_slider.launch
similarity index 92%
rename from launch/mycobot_slider.launch
rename to launch/mycobot/mycobot_slider.launch
index 1914e8e..6ba0e80 100644
--- a/launch/mycobot_slider.launch
+++ b/launch/mycobot/mycobot_slider.launch
@@ -2,7 +2,7 @@
-
+
diff --git a/launch/mycobot_teleop_keyboard.launch b/launch/mycobot/mycobot_teleop_keyboard.launch
similarity index 81%
rename from launch/mycobot_teleop_keyboard.launch
rename to launch/mycobot/mycobot_teleop_keyboard.launch
index 090c2bf..b3cfe93 100644
--- a/launch/mycobot_teleop_keyboard.launch
+++ b/launch/mycobot/mycobot_teleop_keyboard.launch
@@ -2,7 +2,7 @@
-
+
@@ -13,7 +13,7 @@
-
+
diff --git a/launch/chomp_planning_pipeline.launch.xml b/launch/mycobot_moveit/chomp_planning_pipeline.launch.xml
similarity index 100%
rename from launch/chomp_planning_pipeline.launch.xml
rename to launch/mycobot_moveit/chomp_planning_pipeline.launch.xml
diff --git a/launch/default_warehouse_db.launch b/launch/mycobot_moveit/default_warehouse_db.launch
similarity index 89%
rename from launch/default_warehouse_db.launch
rename to launch/mycobot_moveit/default_warehouse_db.launch
index d794ae3..9d19796 100644
--- a/launch/default_warehouse_db.launch
+++ b/launch/mycobot_moveit/default_warehouse_db.launch
@@ -5,7 +5,7 @@
-
+
diff --git a/launch/fake_moveit_controller_manager.launch.xml b/launch/mycobot_moveit/fake_moveit_controller_manager.launch.xml
similarity index 100%
rename from launch/fake_moveit_controller_manager.launch.xml
rename to launch/mycobot_moveit/fake_moveit_controller_manager.launch.xml
diff --git a/launch/firefighter_moveit_controller_manager.launch.xml b/launch/mycobot_moveit/firefighter_moveit_controller_manager.launch.xml
similarity index 100%
rename from launch/firefighter_moveit_controller_manager.launch.xml
rename to launch/mycobot_moveit/firefighter_moveit_controller_manager.launch.xml
diff --git a/launch/firefighter_moveit_sensor_manager.launch.xml b/launch/mycobot_moveit/firefighter_moveit_sensor_manager.launch.xml
similarity index 100%
rename from launch/firefighter_moveit_sensor_manager.launch.xml
rename to launch/mycobot_moveit/firefighter_moveit_sensor_manager.launch.xml
diff --git a/launch/move_group.launch b/launch/mycobot_moveit/move_group.launch
similarity index 84%
rename from launch/move_group.launch
rename to launch/mycobot_moveit/move_group.launch
index d801862..b89d88f 100644
--- a/launch/move_group.launch
+++ b/launch/mycobot_moveit/move_group.launch
@@ -1,12 +1,12 @@
-
+
+ value="gdb -x $(find mycobot_ros)/launch//mycobot_moveit/gdb_settings.gdb --ex run --args" />
@@ -39,19 +39,19 @@
-->
-
+
-
+
-
+
diff --git a/launch/moveit.rviz b/launch/mycobot_moveit/moveit.rviz
similarity index 100%
rename from launch/moveit.rviz
rename to launch/mycobot_moveit/moveit.rviz
diff --git a/launch/moveit_rviz.launch b/launch/mycobot_moveit/moveit_rviz.launch
similarity index 91%
rename from launch/moveit_rviz.launch
rename to launch/mycobot_moveit/moveit_rviz.launch
index b44e3f5..51ce7fa 100644
--- a/launch/moveit_rviz.launch
+++ b/launch/mycobot_moveit/moveit_rviz.launch
@@ -6,7 +6,7 @@
-
+
diff --git a/launch/mycobot_moveit.launch b/launch/mycobot_moveit/mycobot_moveit.launch
similarity index 90%
rename from launch/mycobot_moveit.launch
rename to launch/mycobot_moveit/mycobot_moveit.launch
index 6e9e240..713251a 100644
--- a/launch/mycobot_moveit.launch
+++ b/launch/mycobot_moveit/mycobot_moveit.launch
@@ -19,7 +19,7 @@
-
+
@@ -37,7 +37,7 @@
-
+
@@ -45,7 +45,7 @@
-
+
diff --git a/launch/ompl_planning_pipeline.launch.xml b/launch/mycobot_moveit/ompl_planning_pipeline.launch.xml
similarity index 100%
rename from launch/ompl_planning_pipeline.launch.xml
rename to launch/mycobot_moveit/ompl_planning_pipeline.launch.xml
diff --git a/launch/planning_context.launch b/launch/mycobot_moveit/planning_context.launch
similarity index 93%
rename from launch/planning_context.launch
rename to launch/mycobot_moveit/planning_context.launch
index 214e340..c344037 100644
--- a/launch/planning_context.launch
+++ b/launch/mycobot_moveit/planning_context.launch
@@ -6,7 +6,7 @@
-
+
diff --git a/launch/planning_pipeline.launch.xml b/launch/mycobot_moveit/planning_pipeline.launch.xml
similarity index 67%
rename from launch/planning_pipeline.launch.xml
rename to launch/mycobot_moveit/planning_pipeline.launch.xml
index d1e4c20..ad57004 100644
--- a/launch/planning_pipeline.launch.xml
+++ b/launch/mycobot_moveit/planning_pipeline.launch.xml
@@ -5,6 +5,6 @@
-
+
diff --git a/launch/ros_controllers.launch b/launch/mycobot_moveit/ros_controllers.launch
similarity index 100%
rename from launch/ros_controllers.launch
rename to launch/mycobot_moveit/ros_controllers.launch
diff --git a/launch/sensor_manager.launch.xml b/launch/mycobot_moveit/sensor_manager.launch.xml
similarity index 83%
rename from launch/sensor_manager.launch.xml
rename to launch/mycobot_moveit/sensor_manager.launch.xml
index 6d2cd5b..119b1bb 100644
--- a/launch/sensor_manager.launch.xml
+++ b/launch/mycobot_moveit/sensor_manager.launch.xml
@@ -12,6 +12,6 @@
-
+
diff --git a/launch/trajectory_execution.launch.xml b/launch/mycobot_moveit/trajectory_execution.launch.xml
similarity index 89%
rename from launch/trajectory_execution.launch.xml
rename to launch/mycobot_moveit/trajectory_execution.launch.xml
index d1a0ab3..277fc34 100644
--- a/launch/trajectory_execution.launch.xml
+++ b/launch/mycobot_moveit/trajectory_execution.launch.xml
@@ -15,6 +15,6 @@
-
+
diff --git a/scripts/detect_marker.py b/scripts/mycobot/detect_marker.py
similarity index 100%
rename from scripts/detect_marker.py
rename to scripts/mycobot/detect_marker.py
diff --git a/scripts/follow_and_pump.py b/scripts/mycobot/follow_and_pump.py
similarity index 100%
rename from scripts/follow_and_pump.py
rename to scripts/mycobot/follow_and_pump.py
diff --git a/scripts/follow_display.py b/scripts/mycobot/follow_display.py
similarity index 100%
rename from scripts/follow_display.py
rename to scripts/mycobot/follow_display.py
diff --git a/scripts/following_marker.py b/scripts/mycobot/following_marker.py
similarity index 100%
rename from scripts/following_marker.py
rename to scripts/mycobot/following_marker.py
diff --git a/scripts/listen_real.py b/scripts/mycobot/listen_real.py
similarity index 100%
rename from scripts/listen_real.py
rename to scripts/mycobot/listen_real.py
diff --git a/scripts/listen_real_of_topic.py b/scripts/mycobot/listen_real_of_topic.py
similarity index 100%
rename from scripts/listen_real_of_topic.py
rename to scripts/mycobot/listen_real_of_topic.py
diff --git a/scripts/simple_gui.py b/scripts/mycobot/simple_gui.py
similarity index 100%
rename from scripts/simple_gui.py
rename to scripts/mycobot/simple_gui.py
diff --git a/scripts/slider_control.py b/scripts/mycobot/slider_control.py
similarity index 100%
rename from scripts/slider_control.py
rename to scripts/mycobot/slider_control.py
diff --git a/scripts/teleop_keyboard.py b/scripts/mycobot/teleop_keyboard.py
similarity index 100%
rename from scripts/teleop_keyboard.py
rename to scripts/mycobot/teleop_keyboard.py
diff --git a/scripts/sync_plan.py b/scripts/mycobot_moveit/sync_plan.py
similarity index 100%
rename from scripts/sync_plan.py
rename to scripts/mycobot_moveit/sync_plan.py
diff --git a/scripts/test.py b/scripts/test.py
index 0b438bc..232a3a9 100644
--- a/scripts/test.py
+++ b/scripts/test.py
@@ -1,9 +1,22 @@
+#!/usr/bin/env python
+
+'''
+This package need `pymycobot`.
+This file for test the API if right.
+Just can run in Linux.
+'''
+
import time, random, subprocess
from pymycobot.mycobot import MyCobot
-# from pythonAPI.mycobot3 import MyCobot as MyCobot3
from pymycobot.genre import Angle, Coord
if __name__ == '__main__':
+ sys_ = subprocess.check_output(['uname'],
+ shell=True).decode()
+ if not sys_ == 'Linux':
+ print('This script just can run on Linux.')
+ exit(0)
+
port = subprocess.check_output(['echo -n /dev/ttyUSB*'],
shell=True).decode()
mycobot = MyCobot(port)
diff --git a/urdf/joint1.dae b/urdf/mycobot/joint1.dae
similarity index 100%
rename from urdf/joint1.dae
rename to urdf/mycobot/joint1.dae
diff --git a/urdf/joint1.png b/urdf/mycobot/joint1.png
similarity index 100%
rename from urdf/joint1.png
rename to urdf/mycobot/joint1.png
diff --git a/urdf/joint2.dae b/urdf/mycobot/joint2.dae
similarity index 100%
rename from urdf/joint2.dae
rename to urdf/mycobot/joint2.dae
diff --git a/urdf/joint2.png b/urdf/mycobot/joint2.png
similarity index 100%
rename from urdf/joint2.png
rename to urdf/mycobot/joint2.png
diff --git a/urdf/joint3.dae b/urdf/mycobot/joint3.dae
similarity index 100%
rename from urdf/joint3.dae
rename to urdf/mycobot/joint3.dae
diff --git a/urdf/joint3.png b/urdf/mycobot/joint3.png
similarity index 100%
rename from urdf/joint3.png
rename to urdf/mycobot/joint3.png
diff --git a/urdf/joint4.dae b/urdf/mycobot/joint4.dae
similarity index 100%
rename from urdf/joint4.dae
rename to urdf/mycobot/joint4.dae
diff --git a/urdf/joint4.png b/urdf/mycobot/joint4.png
similarity index 100%
rename from urdf/joint4.png
rename to urdf/mycobot/joint4.png
diff --git a/urdf/joint5.dae b/urdf/mycobot/joint5.dae
similarity index 100%
rename from urdf/joint5.dae
rename to urdf/mycobot/joint5.dae
diff --git a/urdf/joint5.png b/urdf/mycobot/joint5.png
similarity index 100%
rename from urdf/joint5.png
rename to urdf/mycobot/joint5.png
diff --git a/urdf/joint6.dae b/urdf/mycobot/joint6.dae
similarity index 100%
rename from urdf/joint6.dae
rename to urdf/mycobot/joint6.dae
diff --git a/urdf/joint6.png b/urdf/mycobot/joint6.png
similarity index 100%
rename from urdf/joint6.png
rename to urdf/mycobot/joint6.png
diff --git a/urdf/joint7.dae b/urdf/mycobot/joint7.dae
similarity index 100%
rename from urdf/joint7.dae
rename to urdf/mycobot/joint7.dae
diff --git a/urdf/joint7.png b/urdf/mycobot/joint7.png
similarity index 100%
rename from urdf/joint7.png
rename to urdf/mycobot/joint7.png
diff --git a/urdf/mycobot_step.STEP b/urdf/mycobot/mycobot_step.STEP
similarity index 100%
rename from urdf/mycobot_step.STEP
rename to urdf/mycobot/mycobot_step.STEP
diff --git a/urdf/mycobot_urdf.urdf b/urdf/mycobot/mycobot_urdf.urdf
similarity index 80%
rename from urdf/mycobot_urdf.urdf
rename to urdf/mycobot/mycobot_urdf.urdf
index 3ac462d..ddafaf7 100755
--- a/urdf/mycobot_urdf.urdf
+++ b/urdf/mycobot/mycobot_urdf.urdf
@@ -8,14 +8,14 @@
-
+
-
+
@@ -24,13 +24,13 @@
-
+
-
+
@@ -40,13 +40,13 @@
-
+
-
+
@@ -57,14 +57,14 @@
-
+
-
+
@@ -75,14 +75,14 @@
-
+
-
+
@@ -93,14 +93,14 @@
-
+
-
+
@@ -111,14 +111,14 @@
-
+
-
+