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

Devel/noetic/build #44

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion aerial_robot_perception/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ include_directories(
)

# download and install sample data
add_custom_target(install_sample_data ALL COMMAND ${PROJECT_SOURCE_DIR}/scripts/install_test_data.py)
# add_custom_target(install_sample_data ALL COMMAND ${PROJECT_SOURCE_DIR}/scripts/install_test_data.py)


macro(arp_add_nodelet _nodelet_cpp _nodelet_class _single_nodelet_exec_name)
Expand Down
4 changes: 2 additions & 2 deletions aerial_robot_perception/src/rectangle_detection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -224,12 +224,12 @@ namespace aerial_robot_perception
cv::line(debug_img, vertices[i], vertices[(i+1)%4], cv::Scalar(255,0,0), 10); //blue
}
cv::Point2f arrow_point = cv::Point2f(50.0 * std::cos(angles[i]), 50.0 * std::sin(angles[i])) + passed_rects[i].center;
cv::arrowedLine(debug_img, passed_rects[i].center, arrow_point, cv::Scalar(0, 0, 0), 3, CV_AA, 0, 0.4);
cv::arrowedLine(debug_img, passed_rects[i].center, arrow_point, cv::Scalar(0, 0, 0), 3, cv::LINE_AA, 0, 0.4);
}
} else {
//no rects
//cv::putText(debug_img, "no rect", cv::Point(0, 0), cv::FONT_HERSHEY_PLAIN, 100, cv::Scalar(0, 0, 0), 3);
cv::putText(debug_img, fail_msg_.c_str(), cv::Point(10, 50), cv::FONT_HERSHEY_SIMPLEX, 1.2, cv::Scalar(0,0,200), 2, CV_AA);
cv::putText(debug_img, fail_msg_.c_str(), cv::Point(10, 50), cv::FONT_HERSHEY_SIMPLEX, 1.2, cv::Scalar(0,0,200), 2, cv::LINE_AA);
}
sensor_msgs::ImagePtr debug_img_msg = cv_bridge::CvImage(msg->header, rgb_img_encoding_, debug_img).toImageMsg();
debug_image_pub_.publish(debug_img_msg);
Expand Down