Who's a good jackal - an object tracking jackal.
Objective for this project.
- ROS package for object tracking.
- Launch file to bring up PS3 camera to publish images.
- Choose an object for the robot to track
- Subscriber node that takes in the image from the image publisher above and identifies the object.
- Develop a control law for tracking the object via the threshold mask.
- The controller should attempt remain the same approximate distance from the object.
- Controller must include a hysteresis/thresholding element ensuring that visual feedback results in smooth movement/tracking of the object.
- Upon pressing the "circle" button on the PS3 controller the should begin tracking your object. Tracking should stop when the "X" button is pressed.
- Haden Wasserbaech
- Phillip Scramlin
- Sabari Manohar (Team Lead)
ssh into the jackal and follow these commands
- Copy the repository into jackal.
git clone [email protected]:sManohar201/curly-fortnight.git
cd curly-fortnight/catkin_ws && catkin_make
source devel/setup.bash
roslaunch obj_track start_cam.launch
Now from the local repository follow the remaining commands
- Clone the repository to a desired location
git clone [email protected]:sManohar201/curly-fortnight.git
cd curly-fortnight/catkin_ws && catkin_make
source devel/setup.bash
source ~/remote-jackal.sh jackal5
roslaunch obj_track control_start.launch
Once you run the roslaunch command, the output should be as shown below.
At this point, moving the object in front of the camera should result in robot tracking the object.
- The choosen object's color should be similar to the one shown in the image. Otherwise the HSV of the respective object should be found and altered in the track.py program, on lines 19 and 20.
lower_color = np.array([75, 25, 50]) high_color = np.array([100, 255, 255])
- If the object is brought too close to the camera, the tracking function might not work. It is advisable to keep the object at least 100cm away for the function to work properly.
Unfinished python script for face tracking located in pdscraml branch. This script uses Pre-learned classifier xml files for detecting faces in a video.