This package demonstrates a ROS service for performing edge detection on images in a directory using OpenCV. It includes both a server node (edge_detection_node.py
) for the service and a client node (edge_detection_client.py
) to request edge detection on images.
-
Build the package using catkin_make: ''' cd Edge_Detection_Service catkin_make '''
-
Source ROS workspace to ensure that ROS can find the package ''' source devel/setup.bash '''
-
Create conda env or virtual env for libarary installization a. cv2 libary install
-
Run master node - roscore
-
Run the edge detection server node - rosrun edge_detection_service src/edge_detection_node.py
-
Run the edge detection client node: rosrun edge_detection_service src/edge_detection_client.py