Skip to content

Commit

Permalink
First ROS package working
Browse files Browse the repository at this point in the history
  • Loading branch information
Miguelmelon committed May 21, 2024
1 parent a5a8407 commit a94b931
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 52 deletions.
2 changes: 1 addition & 1 deletion people_tracking_v2/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ catkin_package()
install(PROGRAMS
scripts/face_recognition_node.py
scripts/pose_estimation_node.py
scripts/yolo2.py
scripts/yolo.py
DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def __init__(self):
self.bridge = CvBridge()
self.model = YOLO("yolov8l.pt")

self.image_sub = rospy.Subscriber("/cv_camera/image_raw", Image, self.image_callback)
self.image_sub = rospy.Subscriber("/Webcam/image_raw", Image, self.image_callback)
self.detection_pub = rospy.Publisher("/yolo_detections", String, queue_size=10)

def image_callback(self, data):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

<node
pkg="people_tracking_v2"
type="yolo2.py"
type="yolo.py"
name="People_detection"
output="screen"
/>
Expand Down
49 changes: 0 additions & 49 deletions people_tracking_v2/src/people_tracking/yolo.py

This file was deleted.

0 comments on commit a94b931

Please sign in to comment.