Skip to content

Comments

Buoy tracking with computer vision#54

Draft
ericcai32 wants to merge 26 commits intomainfrom
computer_vision
Draft

Buoy tracking with computer vision#54
ericcai32 wants to merge 26 commits intomainfrom
computer_vision

Conversation

@ericcai32
Copy link
Contributor

  • Created node that processes color and depth frames from the camera and publishes the direction a detected buoy is in, or the location of the buoy if the buoy is centered.
  • Added functionality for the Teensy node to send the direction of a detected buoy to the Teensy and read/publish the buoy tracking servo's current angle.
  • Added Teensy control task to move a servo to center the detected buoy in the camera frame.
  • Edited Teensy serial code so that it can recieve the buoy direction and send the buoy tracking servo's current angle.

Still to do:

  • Test the modified Teensy code to make sure it communicates properly and moves the servo properly.
  • Remove extraneous edits.

Copy link
Member

@Nikil-Shyamsunder Nikil-Shyamsunder left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ik some of this is outdated. mostly minor changes

setup/Dockerfile Outdated
ENTRYPOINT ["/home/ros2_user/setup_ros.sh"]
##############################################
# Created from template ros2.dockerfile.jinja
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you changed the entire file from CRLF to LF or otherwise; this really confuses the diffs. change it back and just add your few line diff here.

from sailboat_interface.msg import SailTail
from std_msgs.msg import Int32

#import statement may or may not be necessary
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is it necessary or unnecessary? delete the comment and/or the import

constexpr uint8_t RUDDER_MIN_ANGLE = 0;
constexpr uint8_t RUDDER_MAX_ANGLE = 90;

constexpr uint8_t TRACKER_PIN = 5; //TODO: change to correct pin number
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is tis fixed now

bool update_servos = false;

//int8_t buoy_displacement = 0;
int8_t servo_angle = 0; //what should the default value be
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed?

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants