-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Intro Task - First Attempt #164
base: develop
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work! Style looks good and the service is a nice touch. I would try loading the thresholds as ros params and double checking the ROS namespacing
class redDetection: | ||
def __init__(self): | ||
##ned to figure out how to pass the image message to threhold image | ||
self._sub = rospy.Subscriber('/kf/vehicle/oakd_bottom/color/image_raw',Image,self._handle_image) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't need to hardcode this. Using vehicle/oakd_bottom/...
(no leading /
) will automatically prefix the /kf/
using ROS namespacing if the node is launched from a launch file correctly
self._srv1 = rospy.Service('color_filter/user_mask',GetImageMask,self._apply_mask) | ||
#self._srv2 = rospy.Service('color_filter/reset_masks',Trigger,self._reset) | ||
self._bridge = CvBridge() | ||
self._mask1_lwr = (0,120,120) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Try loading these as ros params from a yaml file
First draft of code for intro task. Right now, when kingfisher simulation is run, no data is received by the listener. Also, I don't know how to implement my own service, so I commented out functions related to Part 5 of the intro task.