Cells API¶
object_recognition_core.ecto_cells.db¶
ObservationInserter¶
Brief doc
Inserts observations into the database.
Parameters
db_params
object_recognition_core::db::ObjectDbParameters
[not visible from python]
The database parameters
object_id
std::string
The object id, to associate this frame with.
session_id
std::string
The session id, to associate this frame with.
Inputs
K
cv::Mat
The camera intrinsic matrix
R
cv::Mat
The orientation.
T
cv::Mat
The translation.
depth
cv::Mat
The 16bit depth image.
frame_number
int
The frame number
image
cv::Mat
An rgb full frame image.
mask
cv::Mat
The mask.
ModelWriter¶
Brief doc
Takes a document, that should be considered as a Model, and persists it. Also stores common meta data that is useful for searching.
Parameters
json_params
std::string
The non-discriminative parameters used, as JSON.
method
std::string
The method used to compute the model (e.g. ‘TOD’ ...).
Inputs
db_document
object_recognition_core::db::Document
json_db
std::string
The DB parameters
object_id
std::string
The object id, to associate this model with.
ObservationReader¶
Brief doc
Reads observations from the database.
Inputs
document
object_recognition_core::db::Document
The observation id to load.
Outputs
K
cv::Mat
The camera intrinsic matrix
R
cv::Mat
The orientation.
T
cv::Mat
The translation.
depth
cv::Mat
The 16bit depth image.
frame_number
int
The frame number
image
cv::Mat
An rgb full frame image.
mask
cv::Mat
The mask.
object_recognition_core.ecto_cells.io¶
GuessTerminalWriter¶
Brief doc
Given guesses, writes them to the terminal.
Parameters
base_directory
std::string
Base directory
config_file
std::string
Configuration file
Inputs
pose_results
std::vector<object_recognition_core::common::PoseResult, std::allocator<object_recognition_core::common::PoseResult> >
The results of object recognition
GuessCsvWriter¶
Brief doc
Given guesses, writes them to a CSV in the NIST format.
Parameters
run_number
int
The run number
team_name
std::string
The name of the team to consider
Inputs
pose_results
std::vector<object_recognition_core::common::PoseResult, std::allocator<object_recognition_core::common::PoseResult> >
The results of object recognition
PipelineInfo¶
Brief doc
Spits out the parameters given as a JSON sting.
Parameters
parameters
std::string
The JSON parameters of the pipeline.
Outputs
parameters
or_json::Value_impl<or_json::Config_map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > >
The parameters as a JSON dict.
parameters_str
std::string
The parameters as a JSON string.
object_recognition_ros.ecto_cells.io_ros¶
MsgAssembler¶
Brief doc
Given object ids and poses, fill the object recognition message.
Parameters
publish_clusters
bool
True
Sets whether the point cloud clusters have to be published or not
Inputs
frame_id
std::string
The frame_id where the objects are seen. It can be obtained from image_message too.
image_message
boost::shared_ptr<sensor_msgs::Image_<std::allocator<void> > const>
The image message to get the header
pose_results
std::vector<object_recognition_core::common::PoseResult, std::allocator<object_recognition_core::common::PoseResult> >
The results of object recognition
Outputs
msg
boost::shared_ptr<object_recognition_msgs::RecognizedObjectArray_<std::allocator<void> > const>
The poses
Publisher_MarkerArray¶
Brief doc
Publishes a visualization_msgs::MarkerArray.
Parameters
latched
bool
False
Is this a latched topic?
queue_size
int
2
The amount to buffer incoming messages.
topic_name
std::string
/ros/topic/name
The topic name to publish to. May be remapped.
Inputs
input
boost::shared_ptr<visualization_msgs::MarkerArray_<std::allocator<void> > const>
The message to publish.
Outputs
has_subscribers
bool
Has currently connected subscribers.
Subscriber_Marker¶
Brief doc
Subscribes to a visualization_msgs::Marker.
Parameters
queue_size
int
2
The amount to buffer incoming messages.
tcp_nodelay
bool
False
Enable/disable nagle’s algorithm on bundling small packets together.
topic_name
std::string
/ros/topic/name
The topic name to subscribe to.
Outputs
output
boost::shared_ptr<visualization_msgs::Marker_<std::allocator<void> > const>
The received message.
Subscriber_MarkerArray¶
Brief doc
Subscribes to a visualization_msgs::MarkerArray.
Parameters
queue_size
int
2
The amount to buffer incoming messages.
tcp_nodelay
bool
False
Enable/disable nagle’s algorithm on bundling small packets together.
topic_name
std::string
/ros/topic/name
The topic name to subscribe to.
Outputs
output
boost::shared_ptr<visualization_msgs::MarkerArray_<std::allocator<void> > const>
The received message.
Bagger_MarkerArray¶
Brief doc
A bagger for messages of a given type. Can enable read/write to ros bags.
Parameters
bagger
boost::shared_ptr<ecto_ros::Bagger_base const>
[not visible from python]
The bagger.
topic_name
std::string
/ros/topic/name
The topic name to subscribe to.
Bagger_Marker¶
Brief doc
A bagger for messages of a given type. Can enable read/write to ros bags.
Parameters
bagger
boost::shared_ptr<ecto_ros::Bagger_base const>
[not visible from python]
The bagger.
topic_name
std::string
/ros/topic/name
The topic name to subscribe to.
Publisher_Marker¶
Brief doc
Publishes a visualization_msgs::Marker.
Parameters
latched
bool
False
Is this a latched topic?
queue_size
int
2
The amount to buffer incoming messages.
topic_name
std::string
/ros/topic/name
The topic name to publish to. May be remapped.
Inputs
input
boost::shared_ptr<visualization_msgs::Marker_<std::allocator<void> > const>
The message to publish.
Outputs
has_subscribers
bool
Has currently connected subscribers.
object_recognition_core.ecto_cells.filters¶
depth_filter¶
Brief doc
Given a depth image, return the mask of what is between two depths.
Parameters
d_max
float
3.40282346639e+38
The maximal distance at which object become interesting (in meters)
d_min
float
-3.40282346639e+38
The minimal distance at which object become interesting (in meters)
Inputs
points3d
cv::Mat
The 3d points: width by height by 3 channels
Outputs
mask
cv::Mat
The mask of what is within the depth range in the image
object_recognition_core.ecto_cells.voter¶
Aggregator¶
Brief doc
Simply aggregates the results from several pipelines
Parameters
n_inputs
unsigned int
Number of inputs to AND together
Outputs
pose_results
std::vector<object_recognition_core::common::PoseResult, std::allocator<object_recognition_core::common::PoseResult> >
The results of object recognition