File tree Expand file tree Collapse file tree 3 files changed +6
-5
lines changed Expand file tree Collapse file tree 3 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -50,12 +50,13 @@ def __init__(self, video_src):
50
50
self .rhodotPub = rospy .Publisher ('rho_dot' , Float64 , queue_size = 10 )
51
51
52
52
def sendCoord (self , x , y ):
53
- self .xcoordPub .publish (x )
53
+ x -= 640
54
+ self .xcoordPub .publish (x )
54
55
self .rhodotPub .publish (y )
55
56
56
57
def findBestCluster (self , clusters ):
57
58
id = 0
58
- minScore = 4
59
+ minScore = np . inf
59
60
DONE = False
60
61
minDistance = self .globalMinDist
61
62
mindiffScore = np .inf
@@ -164,7 +165,7 @@ def run(self):
164
165
165
166
if self .notDetected > 0 :
166
167
try :
167
- self .sendCoord (- 1 , self .rhoDot )
168
+ self .sendCoord (9999 + 640 , self .rhoDot )
168
169
except rospy .ROSInterruptException :
169
170
pass
170
171
Original file line number Diff line number Diff line change 10
10
#include " customPID.h"
11
11
#include " Sabertooth.h"
12
12
13
- #define NOT_DETECTED - 1
13
+ #define NOT_DETECTED 9999
14
14
15
15
class LOS {
16
16
public:
Original file line number Diff line number Diff line change 1
1
screen -d -m -S Vision bash -c ' export ROS_MASTER_URI=$ROS_PC && ./lk_detect.py; exec bash'
2
- screen -d -m -S ROS bash -c ' export ROS_MASTER_URI=$ROS_PC && rosrun rosserial_python serial_node.py /dev/ttyACM0 ; exec bash'
2
+ screen -d -m -S ROS bash -c ' export ROS_MASTER_URI=$ROS_PC && rosrun rosserial_python serial_node.py /dev/ttySAC0 ; exec bash'
You can’t perform that action at this time.
0 commit comments