1+ /* *
2+ * Copyright (c) 2021 Aditi Ramadwar, Arunava Basu
3+ *
4+ * Permission is hereby granted, free of charge, to any person obtaining
5+ * a copy of this software and associated documentation files (the "Software"),
6+ * to deal in the Software without restriction, including without limitation
7+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
8+ * and/or sell copies of the Software, and to permit persons to whom the Software
9+ * is furnished to do so, subject to the following conditions:
10+ *
11+ * The above copyright notice and this permission notice shall be included in
12+ * all copies or substantial portions of the Software.
13+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
14+ * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
19+ * SOFTWARE.
20+ */
121/* *
222 * @file Robot.cpp
323 * @author Iteration 1 : Aditi Ramadwar (Driver) , Arunava Basu (Navigator)
@@ -18,11 +38,10 @@ Robot::Robot(Eigen::Matrix4d transformation_matrix) {
1838 transformation_cr = transformation_matrix;
1939}
2040/* *
21- * @brief
41+ * @brief prepFrame : Pre processing of the camera frame
2242 *
23- * @param frame
24- * @param net_input_shape
25- * @return vector<cv::Mat>
43+ * @param frame : Current Camera frame
44+ * @return Mat : processed camera frame, ready for detection
2645 */
2746Mat Robot::prepFrame (Mat frame) {
2847 Mat blob_frame;
@@ -32,13 +51,10 @@ Mat Robot::prepFrame(Mat frame) {
3251 return blob_frame;
3352}
3453/* *
35- * @brief
54+ * @brief transformToRobotFrame
3655 *
37- * @param transformation_matrix
38- * @param bbox_coords
39- * @param pixel_to_meter
40- * @param area_to_depth
41- * @return vector<double>
56+ * @param bbox_coords : location of each human in camera reference frame
57+ * @return vector<double> : location of each human in robot reference frame
4258 */
4359vector<double > Robot::transformToRobotFrame (vector<Rect> bbox_coords) {
4460 // Initialize the position vectors
@@ -70,9 +86,7 @@ vector<double> Robot::transformToRobotFrame(vector<Rect> bbox_coords) {
7086 return dummy;
7187}
7288/* *
73- * @brief
74- *
75- * @return int
89+ * @brief detectHumans : Main method for human detection
7690 */
7791int Robot::detectHumans () {
7892 HumanDetector hooman;
0 commit comments