Commit 2eed3ee0 authored by Rohan  Kumar's avatar Rohan Kumar
Browse files

fixed testing branch

parent 4d3cc678
Loading
Loading
Loading
Loading

.vscode/settings.json

deleted100644 → 0
+0 −7
Original line number Diff line number Diff line
{
<<<<<<< HEAD
    "java.configuration.updateBuildConfiguration": "interactive"
=======
    "java.compile.nullAnalysis.mode": "automatic"
>>>>>>> 197296f30ca7b0c49c8308bf3194348f11ab6a30
}
 No newline at end of file
+0 −19
Original line number Diff line number Diff line
package object_detection.types;

public class BoundingBox3D {


    /**
     * This class represents a single object in 3D space, and holds the points that fall within it, and its bounds
     * @param ps : the first pointset used to
     */
    public BoundingBox3D(PointSet ps){
        this.ps = ps;
    }


    /* ###################
        Members
    ##################### */
    private PointSet ps;
}
+0 −11
Original line number Diff line number Diff line
@@ -50,17 +50,6 @@ public class CameraPose {
        return translation;
    }

    /* ##########
        Getters
    ########## */
    public DMatrixRMaj getR() {
        return R;
    }

    public DMatrixRMaj getTranslation() {
        return translation;
    }

    /* ##################
        Members
    #################### */
+0 −46
Original line number Diff line number Diff line
package object_detection;

import static org.junit.jupiter.api.Assertions.*;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import object_detection.types.*;

class BoundingBox3DTests {

    private PointSet ps;
    private BoundingBox3D box;

    @BeforeEach
    void setUp() {
        // Create a PointSet with some sample points
        ps = new PointSet(
            1, 
            "object",
            new Point(1.0f, 2.0f, 3.0f),
            new Point(4.0f, 5.0f, 6.0f)
        );

        // Initialize a BoundingBox3D with this PointSet
        box = new BoundingBox3D(ps);
    }

    @Test
    void testBoundingBoxCreation() {
        assertNotNull(box, "BoundingBox3D should not be null after initialization");

        // Assuming BoundingBox3D internally manages the given PointSet
        assertEquals(ps, getPointSet(box), "BoundingBox3D should contain the same PointSet used during initialization");
    }

    // Helper function to access the PointSet within BoundingBox3D
    private PointSet getPointSet(BoundingBox3D box) {
        try {
            java.lang.reflect.Field field = box.getClass().getDeclaredField("ps");
            field.setAccessible(true);
            return (PointSet) field.get(box);
        } catch (Exception e) {
            fail("Failed to retrieve the PointSet from BoundingBox3D.");
            return null;
        }
    }
}

target/classes/README.md

deleted100644 → 0
+0 −15
Original line number Diff line number Diff line

# Entry into System

Things that are true:
1. A student should be able to build the system, then press run, then open a localhost and see the video and the point cloud of each object
2. A student should also be able to choose between different object and get information (need interactive display)
3. The entry needs to do the entire workflow
    - get keyframes and featurepoints
    - get objects from keyframes
    - start object detection
    - finish object detection and update database
    - ping GUI server
    - GUI server pulls information and displays point cloud to user

TODO: function to process each frame within the ObjectSet
 No newline at end of file
Loading