Skip to content
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

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from
Open

Conversation

Elizabetht1
Copy link

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.

Copy link
Contributor

@theochemel theochemel left a 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)
Copy link
Contributor

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)
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants