Tekkotsu Homepage | Demos | Overview | Downloads | Dev. Resources | Reference | Credits |
VisionObjectEvent Class ReferenceExtends EventBase to also include location in the visual field and distance (though distance is not implimented yet). More...
Inheritance diagram for VisionObjectEvent:
Detailed DescriptionExtends EventBase to also include location in the visual field and distance (though distance is not implimented yet). Definition at line 8 of file VisionObjectEvent.h.
Constructor & Destructor Documentation
Constructor, pass a source id and type id -- mainly useful for deactivate events since all object parameters are going to be set to 0.
Definition at line 14 of file VisionObjectEvent.h. Referenced by clone().
Constructor, pass the type id, source id, left, right, top, bottom, x range, and y range.
Definition at line 32 of file VisionObjectEvent.h.
Constructor, pass the type id, source id, left, right, top, bottom, x range, y range, and frame_number.
Definition at line 51 of file VisionObjectEvent.h.
destructor Definition at line 59 of file VisionObjectEvent.h. Member Function Documentationreturns the distance of an object, given that it takes up visArc of the camera's visual arc, and the physical crossection is physDia Definition at line 44 of file VisionObjectEvent.cc. Referenced by getDistanceEstimate().
allows a copy to be made of an event, supporting polymorphism Must be overridden by all subclasses to allow this to happen I would like to switch this over to the cloneable interface once the compiler gets updated out of the 3.3 branch... see Cloneable::clone() for a discussion of the issue and implementation notes. Reimplemented from EventBase. Definition at line 61 of file VisionObjectEvent.h.
should return the minimum size needed if using binary format (i.e. not XML) Reimplemented from EventBase. Definition at line 52 of file VisionObjectEvent.cc.
returns the final y (_y2) coordinate of the Bounding Box (inclusive value) Definition at line 75 of file VisionObjectEvent.h.
returns the area of the bounding box, just multiplication of width*height, (multiply by the major camera resolution to get pixel area) Definition at line 89 of file VisionObjectEvent.h.
returns the center along x Definition at line 85 of file VisionObjectEvent.h. Referenced by VisualTargetCloseTrans::doEvent(), DualCoding::Lookout::findLocationFor(), and Kinematics::projectToGround().
returns the center along y Definition at line 86 of file VisionObjectEvent.h. Referenced by VisualTargetCloseTrans::doEvent(), DualCoding::Lookout::findLocationFor(), and Kinematics::projectToGround().
All subclasses should override this and return a unique ID for their class. All IDs corresponding to all-capital letters are reserved for future framework expansion. (Thus, user subclasses should contain at least one lower-case letter.) This code can be used when serializing to allow quick identification of the class type by the receiver. Reimplemented from EventBase. Definition at line 63 of file VisionObjectEvent.h.
generates a description of the event with variable verbosity
Reimplemented from EventBase. Definition at line 10 of file VisionObjectEvent.cc. returns an estimate of how far away the object is if its major (larger) physical dimension is diaMajor and the other dimension is diaMinor; pass 0 if to only use the major dimension Definition at line 19 of file VisionObjectEvent.cc.
returns number of frame when the event was generated Definition at line 92 of file VisionObjectEvent.h.
return height along y Definition at line 88 of file VisionObjectEvent.h. Referenced by getDistanceEstimate().
returns the initial x (_x1) coordinate of the Bounding Box (inclusive value) Definition at line 66 of file VisionObjectEvent.h.
returns the object's _area within the camera, in squared generalized coordinates. Multiply by the square of the major camera resolution (normally RobotInfo::CameraResolutionX if using full resolution) and divide by 4.0 to get pixel area. Definition at line 78 of file VisionObjectEvent.h.
returns the final x (_x2) coordinate of the Bounding Box (inclusive value) Definition at line 69 of file VisionObjectEvent.h.
returns the initial y (_y1) coordinate of the Bounding Box (inclusive value) Definition at line 72 of file VisionObjectEvent.h.
return width along x Definition at line 87 of file VisionObjectEvent.h. Referenced by getDistanceEstimate().
returns the maximum x value Definition at line 90 of file VisionObjectEvent.h.
returns the maximum y value Definition at line 91 of file VisionObjectEvent.h.
returns _clipLeft Definition at line 96 of file VisionObjectEvent.h.
load from binary format Reimplemented from EventBase. Definition at line 66 of file VisionObjectEvent.cc.
load from XML format Reimplemented from EventBase. Definition at line 89 of file VisionObjectEvent.cc.
save to binary format Reimplemented from EventBase. Definition at line 78 of file VisionObjectEvent.cc.
save to XML format Reimplemented from EventBase. Definition at line 140 of file VisionObjectEvent.cc.
sets the final y (_y2) coordinate of the Bounding Box Definition at line 76 of file VisionObjectEvent.h.
sets clipping boundaries Definition at line 101 of file VisionObjectEvent.h.
sets the initial x (_x1) coordinate of the Bounding Box Definition at line 67 of file VisionObjectEvent.h.
sets the object's _area within the camera, in squared generalized coordinates (multiply by the major camera resolution to get pixel area) Definition at line 79 of file VisionObjectEvent.h.
sets the final x (_x2) coordinate of the Bounding Box Definition at line 70 of file VisionObjectEvent.h.
sets the initial y (_y1) coordinate of the Bounding Box Definition at line 73 of file VisionObjectEvent.h. Member Data Documentation
area of the actual object within bounding box as set by generator, in same units as getBoundaryArea(). Multiply by the square of the major camera resolution (normally RobotInfo::CameraResolutionX if using full resolution) and divide by 4.0 to get pixel area. Definition at line 117 of file VisionObjectEvent.h. Referenced by getObjectArea(), and setObjectArea().
flag to indicate bottom boundary is on or beyond the camera image's boundary Definition at line 121 of file VisionObjectEvent.h. Referenced by isClippedBottom(), loadXML(), saveXML(), and setClipping().
flag to indicate left boundary is on or beyond the camera image's boundary Definition at line 118 of file VisionObjectEvent.h. Referenced by isClippedLeft(), loadXML(), saveXML(), and setClipping().
flag to indicate right boundary is on or beyond the camera image's boundary Definition at line 119 of file VisionObjectEvent.h. Referenced by isClippedRight(), loadXML(), saveXML(), and setClipping().
flag to indicate top boundary is on or beyond the camera image's boundary Definition at line 120 of file VisionObjectEvent.h. Referenced by isClippedTop(), loadXML(), saveXML(), and setClipping().
Number of frame when the event was generated. Definition at line 124 of file VisionObjectEvent.h. Referenced by getDescription(), and getFrame().
a value representing location in visual field - from -1 if on the left edge to 1 if it's on the right edge, see Config::vision_config::x_range Definition at line 113 of file VisionObjectEvent.h. Referenced by getBinSize(), getBoundaryArea(), getCenterX(), getDescription(), getLeft(), getWidth(), loadBinaryBuffer(), loadXML(), saveBinaryBuffer(), saveXML(), and setLeft().
a value representing location in visual field - from -1 if on the left edge to 1 if it's on the right edge, see Config::vision_config::x_range Definition at line 114 of file VisionObjectEvent.h. Referenced by getBinSize(), getBoundaryArea(), getCenterX(), getDescription(), getRight(), getWidth(), loadBinaryBuffer(), loadXML(), saveBinaryBuffer(), saveXML(), and setRight().
Max range of X dimension (typically 1.0 for AIBO). Definition at line 122 of file VisionObjectEvent.h. Referenced by getXrange().
top boundary, in range of ±1/Configvision_config::aspectRatio, see Config::vision_config::y_range Definition at line 115 of file VisionObjectEvent.h. Referenced by getBinSize(), getBoundaryArea(), getCenterY(), getDescription(), getHeight(), getTop(), loadBinaryBuffer(), loadXML(), saveBinaryBuffer(), saveXML(), and setTop().
bottom boundary, in range of ±1/Configvision_config::aspectRatio, see Config::vision_config::y_range Definition at line 116 of file VisionObjectEvent.h. Referenced by getBinSize(), getBottom(), getBoundaryArea(), getCenterY(), getDescription(), getHeight(), loadBinaryBuffer(), loadXML(), saveBinaryBuffer(), saveXML(), and setBottom().
Max range of Y dimension (typically around 0.8 for AIBO due to camera aspect ratio). Definition at line 123 of file VisionObjectEvent.h. Referenced by getYrange().
causes class type id to automatically be regsitered with EventBase's FamilyFactory (getTypeRegistry()) Definition at line 127 of file VisionObjectEvent.h. Referenced by getClassTypeID(). The documentation for this class was generated from the following files: |
Tekkotsu v5.1CVS |
Generated Mon May 9 04:59:18 2016 by Doxygen 1.6.3 |