-
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
eea65c2
commit 3ce634b
Showing
18 changed files
with
376 additions
and
102 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,117 +1,135 @@ | ||
left_leg_motor_0: | ||
id: 4 | ||
type: "xl430" | ||
type: "xm430" | ||
angle_zero: 180 | ||
angle_max: 360 | ||
angle_min: 0 | ||
initial_state: 0.0 | ||
left_leg_motor_1: | ||
id: 5 | ||
type: "xm430" | ||
angle_zero: 180 | ||
angle_max: 360 | ||
angle_min: 0 | ||
flipped: "true" | ||
initial_state: -0.05 | ||
left_leg_motor_2: | ||
id: 6 | ||
type: "xm430" | ||
angle_zero: 180 | ||
angle_max: 360 | ||
angle_min: 0 | ||
flipped: "true" | ||
initial_state: 0.25 | ||
left_leg_motor_3: | ||
id: 7 | ||
type: "mx64" | ||
angle_zero: 180 | ||
angle_max: 360 | ||
angle_min: 0 | ||
initial_state: -0.4 | ||
left_leg_motor_4: | ||
id: 8 | ||
type: "mx64" | ||
angle_zero: 180 | ||
angle_max: 360 | ||
angle_min: 0 | ||
initial_state: 0.2 | ||
left_leg_motor_5: | ||
id: 9 | ||
type: "mx64" | ||
angle_zero: 180 | ||
angle_max: 360 | ||
angle_min: 0 | ||
flipped: "true" | ||
initial_state: 0.0 | ||
right_leg_motor_0: | ||
id: 10 | ||
type: "xm430" | ||
angle_zero: 180 | ||
angle_max: 360 | ||
angle_min: 0 | ||
flipped: "true" | ||
initial_state: 0.0 | ||
right_leg_motor_1: | ||
id: 11 | ||
type: "xm430" | ||
angle_zero: 180 | ||
angle_max: 360 | ||
angle_min: 0 | ||
initial_state: -0.05 | ||
right_leg_motor_2: | ||
id: 12 | ||
type: "xm430" | ||
angle_zero: 180 | ||
angle_max: 360 | ||
angle_min: 0 | ||
initial_state: 0.25 | ||
right_leg_motor_3: | ||
id: 13 | ||
type: "mx64" | ||
angle_zero: 180 | ||
angle_max: 360 | ||
angle_min: 0 | ||
flipped: "true" | ||
initial_state: -0.4 | ||
right_leg_motor_4: | ||
id: 14 | ||
type: "mx64" | ||
angle_zero: 180 | ||
angle_max: 360 | ||
angle_min: 0 | ||
initial_state: 0.2 | ||
flipped: "true" | ||
right_leg_motor_5: | ||
id: 15 | ||
type: "mx64" | ||
angle_zero: 180 | ||
angle_max: 360 | ||
angle_min: 0 | ||
initial_state: 0.0 | ||
left_arm_motor_0: | ||
id: 2 | ||
type: "xm430" | ||
angle_zero: 180 | ||
angle_max: 360 | ||
angle_min: 0 | ||
flipped: "true" | ||
initial_state: 0.2 | ||
left_arm_motor_1: | ||
id: 3 | ||
type: "xm430" | ||
angle_zero: 180 | ||
angle_max: 360 | ||
angle_min: 0 | ||
initial_state: 1.5 | ||
right_arm_motor_0: # Checked | ||
id: 0 | ||
type: "xm430" | ||
angle_zero: 180 | ||
angle_max: 360 | ||
angle_min: 0 | ||
initial_state: 0.2 | ||
right_arm_motor_1: | ||
id: 1 | ||
type: "xm430" | ||
angle_zero: 180 | ||
angle_max: 360 | ||
angle_min: 0 | ||
flipped: "true" | ||
initial_state: 1.5 | ||
head_motor_0: | ||
id: 16 | ||
type: "ax12" | ||
angle_zero: 150 | ||
angle_max: 300 | ||
angle_min: 0 | ||
flipped: "true" | ||
initial_state: 0.0 | ||
head_motor_1: | ||
id: 17 | ||
type: "ax12" | ||
angle_zero: 150 | ||
angle_max: 300 | ||
angle_min: 0 | ||
initial_state: 0.0 |
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
23 changes: 23 additions & 0 deletions
23
soccer_object_detection/src/soccer_object_detection/dfsv.py
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,23 @@ | ||
import cv2 as cv | ||
import numpy as np | ||
|
||
cap = cv.VideoCapture(4) | ||
if not cap.isOpened(): | ||
print("Cannot open camera") | ||
exit() | ||
while True: | ||
# Capture frame-by-frame | ||
ret, frame = cap.read() | ||
# if frame is read correctly ret is True | ||
if not ret: | ||
print("Can't receive frame (stream end?). Exiting ...") | ||
break | ||
# Our operations on the frame come here | ||
gray = cv.cvtColor(frame, cv.COLOR_BGR2GRAY) | ||
# Display the resulting frame | ||
cv.imshow("frame", gray) | ||
if cv.waitKey(1) == ord("q"): | ||
break | ||
# When everything done, release the capture | ||
cap.release() | ||
cv.destroyAllWindows() |
Oops, something went wrong.