117 Commits
Author SHA1 Message Date
schulte-eppendorf 03a15eea18 Dateien nach "Aufraeumroboter_Drakkar/Denies_Schulte_Eppendorf/3d_model" hochladen 2024-03-15 00:00:19 +01:00
schulte-eppendorf a853b369ca Dateien nach "Aufraeumroboter_Drakkar/Denies_Schulte_Eppendorf/3d_model" hochladen 2024-03-15 00:00:03 +01:00
schulte-eppendorf 6ccb27a18b Dateien nach "Aufraeumroboter_Drakkar/Denies_Schulte_Eppendorf/3d_model" hochladen 2024-03-14 23:59:49 +01:00
schulte-eppendorf dafb381c6d Dateien nach "Aufraeumroboter_Drakkar/Denies_Schulte_Eppendorf/3d_model" hochladen 2024-03-14 23:59:35 +01:00
schulte-eppendorf 9c3d5ba18c Dateien nach "Aufraeumroboter_Drakkar/Denies_Schulte_Eppendorf/3d_model" hochladen 2024-03-14 23:58:52 +01:00
schulte-eppendorf 1d9bc397bd Dateien nach "Aufraeumroboter_Drakkar/Denies_Schulte_Eppendorf/3d_model" hochladen 2024-03-14 23:51:45 +01:00
schulte-eppendorf 5f779e7768 Dateien nach "Aufraeumroboter_Drakkar/Denies_Schulte_Eppendorf/3d_model" hochladen 2024-03-14 23:48:31 +01:00
becker 15cf46d8ce Dateien nach "Aufraeumroboter_Drakkar" hochladen 2024-03-14 23:43:15 +01:00
tas f7d4ac38d3 Dateien nach "Aufraeumroboter_Drakkar" hochladen 2024-03-14 23:38:58 +01:00
schulte-eppendorf ce7f72e3dd Dateien nach "Aufraeumroboter_Drakkar/Denies_Schulte_Eppendorf/Images" hochladen 2024-03-14 23:38:36 +01:00
tscherne 6113473c5f Dateien nach "Gruppe1/Utilities-NotUsed" hochladen 2024-03-14 21:26:56 +01:00
tscherne 116dbdbece Dateien nach "Gruppe1" hochladen 2024-03-14 21:24:14 +01:00
tscherne d069c7868a Gruppe1/Dokumentation.pdf gelöscht 2024-03-14 21:24:00 +01:00
rumpf 7281a9ea5f Dateien nach "Gruppe1" hochladen 2024-03-14 19:58:38 +01:00
rumpf 6a3e35db1f Dateien nach "Gruppe1" hochladen 2024-03-14 19:49:20 +01:00
rumpf a14b9962b6 Gruppe1/Gripper_Präsentation.pptx gelöscht 2024-03-14 19:48:29 +01:00
rumpf 7a3fd18835 Dateien nach "Gruppe1" hochladen 2024-03-14 19:48:13 +01:00
rumpf c420ae4709 Dateien nach "Gruppe1/CAD_parts" hochladen 2024-03-14 19:12:48 +01:00
rumpf a9838a163e Dateien nach "Gruppe1/CAD_parts" hochladen 2024-03-14 19:11:53 +01:00
rumpf 93963a6160 Dateien nach "Gruppe1/CAD_parts" hochladen 2024-03-14 19:11:33 +01:00
rumpf 3f5ac53567 Gruppe1/CAD_parts gelöscht 2024-03-14 19:07:59 +01:00
rumpf 58eeea62a7 Gruppe1/CAD_parts hinzugefügt 2024-03-14 19:07:34 +01:00
rumpf 6ef9051f93 Gruppe1/CAD_parts gelöscht 2024-03-14 19:02:00 +01:00
rumpf 5451bfb907 Gruppe1/CAD_parts hinzugefügt 2024-03-14 19:01:39 +01:00
van-lier 9406c39c4e Dateien nach "Gruppe1" hochladen 2024-03-14 18:22:11 +01:00
tscherne 00279a3297 Dateien nach "Gruppe1/Utilities-NotUsed" hochladen 2024-03-14 18:18:33 +01:00
tscherne 5973c75e6e Dateien nach "Gruppe1" hochladen 2024-03-14 18:17:10 +01:00
tscherne 567e368a4a Dateien nach "Gruppe1/Gripper" hochladen 2024-03-14 18:15:07 +01:00
tscherne ee1720db21 Dateien nach "Gruppe1/Gripper" hochladen 2024-03-14 18:14:33 +01:00
tscherne 00e77ac6b2 Dateien nach "Gruppe1/Turtlebot" hochladen 2024-03-14 18:14:07 +01:00
tscherne 27c1f3a518 Dateien nach "Gruppe1/Arduino" hochladen 2024-03-14 18:11:46 +01:00
tscherne 32f4be9603 Dateien nach "Gruppe1" hochladen 2024-03-14 18:10:56 +01:00
van-lier 07accb48de Dateien nach "Fabian" hochladen 2024-03-14 09:35:46 +01:00
schulte-eppendorf cc55d4859b Dateien nach "Aufraeumroboter_Drakkar/Video" hochladen 2024-03-14 09:27:20 +01:00
schulte-eppendorf e3e53c02ef Aufraeumroboter_Drakkar/Video/Presentation_Link hinzugefügt 2024-03-14 09:26:12 +01:00
schulte-eppendorf 64d46c79bf Dateien nach "Aufraeumroboter_Drakkar/Video" hochladen 2024-03-14 09:19:11 +01:00
schulte-eppendorf 2049e120b8 Dateien nach "Aufraeumroboter_Drakkar/Denies_Schulte_Eppendorf/3d_model" hochladen 2024-03-14 09:16:41 +01:00
becker 6940bfe18e Dateien nach "Aufraeumroboter_Drakkar/Dennis_Dirk_Becker/Bilder" hochladen 2024-03-14 03:09:27 +01:00
eraky 05b146d8e5 Upload files to "Aufraeumroboter_Drakkar/Ahmed_Eraky" 2024-03-13 22:39:38 +01:00
eraky 2f855fc070 Upload files to "Aufraeumroboter_Drakkar/Ahmed_Eraky" 2024-03-13 22:39:05 +01:00
eraky 517709c701 Upload files to "Aufraeumroboter_Drakkar/Ahmed_Eraky" 2024-03-13 22:38:52 +01:00
eraky e4d1e6aa1c Upload files to "Aufraeumroboter_Drakkar/Ahmed_Eraky" 2024-03-13 22:33:00 +01:00
becker e2ff4157ee Dateien nach "Aufraeumroboter_Drakkar/Ahmed_Eraky" hochladen 2024-03-13 22:32:07 +01:00
eraky 24d265674d Upload files to "Ahmed Eraky" 2024-03-13 22:29:18 +01:00
tas 460e7e328b Dateien nach "Aufraeumroboter_Drakkar/Cüneyd Tas" hochladen 2024-03-13 22:28:08 +01:00
tas 6b516899e6 Aufraeumroboter_Drakkar/Final/armmovement.ino aktualisiert 2024-03-13 22:26:59 +01:00
tas 53a3b442fa Dateien nach "Aufraeumroboter_Drakkar/Final" hochladen 2024-03-13 22:26:52 +01:00
eraky 2cb6702036 Delete Aufraeumroboter_Drakkar/Ahmed Eraky 2024-03-13 22:26:32 +01:00
tas 59bcddc1c2 Aufraeumroboter_Drakkar/Cüneyd Tas/armmovement.ino aktualisiert 2024-03-13 22:26:29 +01:00
eraky 094202d4dd Add Aufraeumroboter_Drakkar/Ahmed Eraky 2024-03-13 22:26:20 +01:00
tas 1e574a080f Aufraeumroboter_Drakkar/Cüneyd Tas/armmovement.ino aktualisiert 2024-03-13 22:26:07 +01:00
tas f00426b97f Aufraeumroboter_Drakkar/Cüneyd Tas/armmovement.ino aktualisiert 2024-03-13 22:25:52 +01:00
tas b3dc994f06 Aufraeumroboter_Drakkar/Cüneyd Tas/armmovement.ino aktualisiert 2024-03-13 22:25:31 +01:00
eraky 6109c38ded Add Aufraeumroboter_Drakkar/Ahmed Eraky 2024-03-13 22:23:15 +01:00
tas a27206c920 Aufraeumroboter_Drakkar/Cüneyd Tas/alt.ino aktualisiert 2024-03-13 22:22:42 +01:00
tas a7bb5a6c4f Cüneyd Dateien 2024-03-13 22:21:51 +01:00
becker 54c32c3794 Dateien nach "Aufraeumroboter_Drakkar/Dennis_Dirk_Becker/Bilder" hochladen 2024-03-13 21:27:46 +01:00
becker caca25311c Dateien nach "Aufraeumroboter_Drakkar/Dennis_Dirk_Becker/aruco" hochladen 2024-03-13 20:55:27 +01:00
becker bdba1c29c2 Dateien nach "Aufraeumroboter_Drakkar/Dennis_Dirk_Becker/aruco" hochladen 2024-03-13 20:54:29 +01:00
becker 9775d4f1e7 Dateien nach "Aufraeumroboter_Drakkar/Dennis_Dirk_Becker/aruco" hochladen 2024-03-13 20:49:28 +01:00
becker 4f2bb50428 Dateien nach "Aufraeumroboter_Drakkar/Dennis_Dirk_Becker/aruco" hochladen 2024-03-13 20:49:10 +01:00
becker d7f605af35 Dateien nach "Aufraeumroboter_Drakkar/Dennis_Dirk_Becker/aruco" hochladen 2024-03-13 20:48:41 +01:00
becker cf9a1eead7 Dateien nach "Aufraeumroboter_Drakkar/Dennis_Dirk_Becker/yolov8" hochladen 2024-03-13 20:47:56 +01:00
becker 9e1b878c80 Dateien nach "Aufraeumroboter_Drakkar/Dennis_Dirk_Becker/old_scripts" hochladen 2024-03-13 20:47:26 +01:00
becker a811aeacec Dateien nach "Aufraeumroboter_Drakkar/Dennis_Dirk_Becker/depth_related" hochladen 2024-03-13 20:47:00 +01:00
becker 06807cf9e7 Dateien nach "Aufraeumroboter_Drakkar/Bilder" hochladen 2024-03-13 20:41:37 +01:00
becker ef975a4025 Dateien nach "Aufraeumroboter_Drakkar/Dennis_Dirk_Becker/serial" hochladen 2024-03-13 20:40:16 +01:00
becker f03e65c46e Aufraeumroboter_Drakkar/Dennis_Dirk_Becker/marker_x_serial.py gelöscht 2024-03-13 20:40:00 +01:00
becker 93045bcb79 Dateien nach "Aufraeumroboter_Drakkar/Dennis_Dirk_Becker" hochladen 2024-03-13 20:39:00 +01:00
becker de268b922f Dateien nach "Aufraeumroboter_Drakkar/Dennis_Dirk_Becker/depth_related" hochladen 2024-03-13 20:38:16 +01:00
becker e1061dbf5e Dateien nach "Aufraeumroboter_Drakkar/Dennis_Dirk_Becker/depth_related" hochladen 2024-03-13 20:37:23 +01:00
becker 5c3d280967 Dateien nach "Aufraeumroboter_Drakkar/Dennis_Dirk_Becker/old_scripts/max_value_pure_variations" hochladen 2024-03-13 20:36:33 +01:00
becker 3cc56f9632 Dateien nach "Aufraeumroboter_Drakkar/Dennis_Dirk_Becker/old_scripts" hochladen 2024-03-13 20:35:51 +01:00
becker 6618c8dc97 Dateien nach "Aufraeumroboter_Drakkar/Dennis_Dirk_Becker/old_scripts" hochladen 2024-03-13 20:35:30 +01:00
becker ec56aa514f add
Python Script running on the laptop mounted on the turtlebot. started by 'python tutel.py /cmd_vel_mux/input/navi /camera/color/image_raw /camera/color/image_raw <verbose>'
2024-03-13 20:34:04 +01:00
schulte-eppendorf 7c117b3a3a Dateien nach "Aufraeumroboter_Drakkar/Denies_Schulte_Eppendorf/Images" hochladen 2024-03-13 20:31:07 +01:00
schulte-eppendorf 276b55b9b2 Dateien nach "Aufraeumroboter_Drakkar/Denies_Schulte_Eppendorf/Images" hochladen 2024-03-13 20:30:54 +01:00
schulte-eppendorf c5d37ceaab Dateien nach "Aufraeumroboter_Drakkar/Denies_Schulte_Eppendorf/Images" hochladen 2024-03-13 20:30:37 +01:00
schulte-eppendorf 80d30fe149 Dateien nach "Aufraeumroboter_Drakkar/Denies_Schulte_Eppendorf/Images" hochladen 2024-03-13 20:30:24 +01:00
schulte-eppendorf e15413b92b Dateien nach "Aufraeumroboter_Drakkar/Denies_Schulte_Eppendorf/Images" hochladen 2024-03-13 20:30:07 +01:00
schulte-eppendorf fbb9936bf9 Dateien nach "Aufraeumroboter_Drakkar/Denies_Schulte_Eppendorf/Images" hochladen 2024-03-13 20:29:55 +01:00
schulte-eppendorf 279d3f7b0d Dateien nach "Aufraeumroboter_Drakkar/Denies_Schulte_Eppendorf/Images" hochladen 2024-03-13 20:29:40 +01:00
schulte-eppendorf d89d0bb43c Dateien nach "Aufraeumroboter_Drakkar/Denies_Schulte_Eppendorf/Images" hochladen 2024-03-13 20:29:13 +01:00
schulte-eppendorf 0cbda15e8e Dateien nach "Aufraeumroboter_Drakkar/Denies_Schulte_Eppendorf/Images" hochladen 2024-03-13 19:54:31 +01:00
schulte-eppendorf 4486d73253 Dateien nach "Aufraeumroboter_Drakkar/Denies_Schulte_Eppendorf/Images" hochladen 2024-03-13 19:54:12 +01:00
schulte-eppendorf 1750abc09c Dateien nach "Aufraeumroboter_Drakkar/Denies_Schulte_Eppendorf/Images" hochladen 2024-03-13 19:53:30 +01:00
schulte-eppendorf cddb648364 Dateien nach "Aufraeumroboter_Drakkar/Bilder" hochladen 2024-03-13 19:23:52 +01:00
becker 29418cfda1 Dateien nach "Aufraeumroboter_Drakkar/Bilder" hochladen 2024-03-13 18:51:04 +01:00
becker 721c5f802d Dateien nach "Aufraeumroboter_Drakkar/Bilder" hochladen 2024-03-13 18:50:54 +01:00
becker 944dcba3d5 Dateien nach "Aufraeumroboter_Drakkar/Bilder" hochladen 2024-03-13 18:50:25 +01:00
becker bd110e2294 Dateien nach "Aufraeumroboter_Drakkar/Bilder" hochladen 2024-03-13 18:49:56 +01:00
becker 2f0f2a79b2 Dateien nach "Aufraeumroboter_Drakkar/Bilder" hochladen 2024-03-13 18:49:36 +01:00
becker 7ac52f4c78 Dateien nach "Aufraeumroboter_Drakkar/Bilder" hochladen 2024-03-13 18:49:12 +01:00
becker 0634d96e5d Dateien nach "Aufraeumroboter_Drakkar/Bilder" hochladen 2024-03-13 18:48:26 +01:00
becker bf3d40dd26 Dateien nach "Aufraeumroboter_Drakkar/Bilder" hochladen 2024-03-13 18:48:00 +01:00
schulte-eppendorf 3845cbf159 Dateien nach "Aufraeumroboter_Drakkar/Bilder" hochladen 2024-03-13 18:40:58 +01:00
schulte-eppendorf bdbe3c5e0e Dateien nach "Aufraeumroboter_Drakkar/Bilder" hochladen 2024-03-13 18:39:32 +01:00
becker 2b85a513e9 Dateien nach "Aufraeumroboter_Drakkar/Bilder" hochladen 2024-03-13 18:30:21 +01:00
becker 0b8255a0a7 Dateien nach "Aufraeumroboter_Drakkar/Bilder" hochladen 2024-03-13 18:29:52 +01:00
becker 8d4578f7b9 Dateien nach "Aufraeumroboter_Drakkar/Bilder" hochladen 2024-03-13 18:29:18 +01:00
becker 04c722bfbd Dateien nach "Aufraeumroboter_Drakkar/Bilder" hochladen 2024-03-13 18:28:50 +01:00
becker 10ffc92218 Dateien nach "Aufraeumroboter_Drakkar/Bilder" hochladen 2024-03-13 18:28:17 +01:00
becker a6759d3926 Dateien nach "Aufraeumroboter_Drakkar/Video" hochladen 2024-03-13 17:23:55 +01:00
becker 44fc694cf6 Dateien nach "Aufraeumroboter_Drakkar/Video" hochladen 2024-03-13 17:23:15 +01:00
becker 841b2f7ee5 Dateien nach "Aufraeumroboter_Drakkar/Video" hochladen 2024-03-13 17:21:40 +01:00
becker 709ce7bf91 Dateien nach "Aufraeumroboter_Drakkar/Video" hochladen 2024-03-13 17:20:22 +01:00
becker 96bc77b9ad Dateien nach "Aufraeumroboter_Drakkar/Video" hochladen 2024-03-13 17:19:13 +01:00
becker acc3557a5b Dateien nach "Aufraeumroboter_Drakkar/Video" hochladen 2024-03-13 17:17:38 +01:00
becker 4494f48484 Dateien nach "Aufraeumroboter_Drakkar/Dennis_Dirk_Becker/Bilder" hochladen 2024-03-13 17:03:12 +01:00
becker eddcba56f7 Dateien nach "Aufraeumroboter_Drakkar/Dennis_Dirk_Becker/Bilder" hochladen 2024-03-13 17:02:48 +01:00
becker 4a2158ede4 Dateien nach "Aufraeumroboter_Drakkar/Dennis_Dirk_Becker/Bilder" hochladen 2024-03-13 15:50:57 +01:00
eraky cd9f79a574 Upload files to "Arm Design" 2024-03-12 12:24:16 +01:00
eraky 69642fce8c Upload files to "Arm Design" 2024-03-11 14:01:34 +01:00
eraky 57ef06bca6 Upload files to "Arm Design" 2024-03-11 11:09:15 +01:00
eraky 2ce9217c32 Delete New folder.rar 2024-03-11 11:08:34 +01:00
eraky 8e2d4089ad Upload files to "/" 2024-03-11 11:06:50 +01:00
tscherne a79dfd9149 Dateien nach "/" hochladen 2024-03-04 16:22:37 +01:00
322 changed files with 17744 additions and 805 deletions
-194
View File
@@ -1,194 +0,0 @@
#!/usr/bin/env python
from __future__ import print_function
import roslib
import sys
import rospy
import cv2
import time
import random
import numpy as np
from std_msgs.msg import String
from sensor_msgs.msg import Image
from cv_bridge import CvBridge, CvBridgeError
from geometry_msgs.msg import Twist
import gripperHelper
import bDepth
class gripper_mover():
def wait_for_subscribers(self):
while self.pub.get_num_connections() == 0:
print("Waiting for subscriber on {}".format(self.pub.name))
rospy.sleep(1)
if rospy.is_shutdown():
raise Exception("Got shutdown request before subscribers connected")
def wait_for_publisher(self,astra_camera_rgb_topic,astra_camera_depth_topic):
while 1:
x = rospy.get_published_topics()
if any(astra_camera_depth_topic in subl for subl in x) and any(astra_camera_depth_topic in subl for subl in x):
break
print("Waiting for {} and {}".format(astra_camera_rgb_topic,astra_camera_depth_topic))
rospy.sleep(1)
turtle_is_here = 0
def wait_for_here_callback(self,data):
rospy.loginfo(rospy.get_caller_id() + "I heard %s", data.data)
if data.data == "IMHERE":
self.turtle_is_here = 1
def wait_for_here(self):
sub = rospy.Subscriber("chatterabc", String, self.wait_for_here_callback)
while self.turtle_is_here == 0:
print("Turtle is not here")
self.rate.sleep()
sub.unregister()
print("Turtle IS here")
def say_im_finish(self):
for x in range(0, 50):
hello_str = "GRIPFINISH"
print("IM FINISHED")
self.pub2.publish(hello_str)
self.rate.sleep()
def __init__(self, astra_camera_rgb_topic : str, astra_camera_depth_topic : str , start_id : int = 1):
self.target_id = start_id #We target one tag at a time
self.arucoDict = cv2.aruco.getPredefinedDictionary(cv2.aruco.DICT_ARUCO_ORIGINAL)
self.arucoParams = cv2.aruco.DetectorParameters_create()
self.gHelper = gripperHelper.gripperArdunio()
# self.gHelper.testMove(10)
self.gHelper.grabK()
self.bDepth = bDepth.betterDepth()
### For turtle controll
# self.wait_for_subscribers()
self.wait_for_publisher(astra_camera_rgb_topic,astra_camera_depth_topic)
self.bridge = CvBridge()
self.pub2 = rospy.Publisher('grippertalker', String, queue_size=10)
rospy.init_node("turtle_control", anonymous=True)
self.rate = rospy.Rate(30) # update rate can be increased
self.wait_for_here()
self.depth_point = (-1,-1) #This is the point from where we get the depth
self.last_depth = -1 #This is the last depth from the depth_point
self.last_depth2 = -1
self.depth_counter = 0 #Make sure we are really there by counting how many time we got this result
self.rState = 0
self.lastMove = 0
self.image_sub = rospy.Subscriber(
astra_camera_rgb_topic, Image, self.callback_rgb
)
self.depth_bridge = CvBridge()
self.lastTime = time.time()
self.depth_image_sub = rospy.Subscriber(astra_camera_depth_topic,Image,self.callback_depth)
### Markers haven been detected, now do something
def markDetected(self, img, corners):
for markerCorner in corners:
(top_left, top_right, bottom_right, bottom_left) = markerCorner.reshape((4,2))
top_left = (int(top_left[0]), int(top_left[1]))
top_right = (int(top_right[0]), int(top_right[1]))
bottom_right = (int(bottom_right[0]), int(bottom_right[1]))
bottom_left = (int(bottom_left[0]), int(bottom_left[1]))
cv2.line(img, top_left, bottom_right, (0,255,0), 2)
cv2.line(img, top_right, bottom_left, (0,255,0), 2)
self.depth_point = (int((top_left[0] + bottom_right[0]) / 2), int((top_left[1] + bottom_right[1]) / 2))
cv2.circle(img, self.depth_point, 8, (0,0,255), -1)
def callback_rgb(self, data):
try:
cv_image = self.bridge.imgmsg_to_cv2(data, "bgr8")
(self.h, self.w) = cv_image.shape[:2]
except CvBridgeError as e:
print(e)
#(rows, cols, channels) = cv_image.shape
(corners, ids, rejected) = cv2.aruco.detectMarkers(
cv_image, self.arucoDict, parameters=self.arucoParams
)
if corners: #marker corners
#Now seleted the corners of the tag with the right id => the tag that indicates the distance to the gripper
i = np.where(ids == self.target_id) # wahrscheinlich 1 und 0
if len(i[0]) > 0:
fitting_corners = corners[i[0][0]]
self.markDetected(cv_image, fitting_corners)
tM = np.where(ids == 0) #Now try to get the marker that indicates the turtlebot
else:
self.depth_point = (-1,-1)
cv2.rectangle(cv_image,(0,0),(700,120),(10, 10, 10),-1)
#Give some additional informations
idString = "IDs:" + str(ids) + " TargetID:" + str(self.target_id)
cv2.putText(cv_image, idString, (10,30), cv2.FONT_HERSHEY_TRIPLEX, 1, (200, 200, 200), 2, cv2.LINE_8)
depthString = "DepthPoint:" + str(self.depth_point[0]) +"x" +str(self.depth_point[1]) + "Distance:" + str(self.last_depth)
cv2.putText(cv_image, depthString, (10,60), cv2.FONT_HERSHEY_TRIPLEX , 0.8, (200, 200, 200), 2, cv2.LINE_8)
depthString2 = "LastMove:" + str(self.lastMove)
cv2.putText(cv_image, depthString2, (10,90), cv2.FONT_HERSHEY_TRIPLEX , 0.8, (200, 200, 200), 2, cv2.LINE_8)
self.rate.sleep()
cv2.imshow("Window", cv_image)
cv2.waitKey(1)
def callback_depth(self, data):
#It would be possible to convert this to 32FC1
#32FC1 means that each pixel value is stored as one channel floating point with single precision
#In 32FC1 each pixel is 4 bytes. Apart from that its a numpy array)
cv_depth_image = self.depth_bridge.imgmsg_to_cv2(data, "passthrough")
if self.depth_point != (-1,-1):
self.currentTime = time.time()
# Here x and y are swapped. I dont know why.
#notNull = cv_depth_image[self.depth_point[1]][self.depth_point[0]]
last_depth_2 = self.bDepth.wDepthImage(cv_depth_image,self.depth_point[1],self.depth_point[0])
if last_depth_2 == 0 or last_depth_2 > 2000:
return
self.last_depth = last_depth_2
if (self.currentTime - self.lastTime) > 4:
rr = self.last_depth*-0.2478+253.15
st=0
#self.gHelper.testRotate(int(rr))
self.lastTime = time.time()
if self.last_depth < 1000:
self.lastMove = self.last_depth
rr = self.last_depth*-0.2478+253.15
st = 0
while rr > st :
self.gHelper.testRotate(int(st))
st = st + 20
print("st:" + str(st))
print("rr:" + str(rr))
print("==here")
self.gHelper.testPlace(int(rr))
self.depth_point = (-1,-1)
self.say_im_finish()
rospy.signal_shutdown(1)
sys.exit(1)
def main():
if len(sys.argv) != 3:
print("Please give the following arguments <camera-img-topic> and <camera-depth-topic>")
print("Like: marker_attack.py /camera/rgb/image_raw /camera/depth/image_raw")
return 1
print("OK")
ic = gripper_mover(str(sys.argv[1]),str(sys.argv[2]))
try:
rospy.spin()
except KeyboardInterrupt:
print("Shutting down")
cv2.destroyAllWindows()
if __name__ == "__main__":
main()
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

After

Width:  |  Height:  |  Size: 177 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 109 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 182 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 158 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 251 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 251 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 216 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 183 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 167 KiB

Binary file not shown.
Binary file not shown.
Binary file not shown.

After

Width:  |  Height:  |  Size: 235 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 170 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 135 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 211 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 148 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 140 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 211 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 938 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1021 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 MiB

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.1 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 282 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 129 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 141 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 130 KiB

Some files were not shown because too many files have changed in this diff Show More