Skip to content
Snippets Groups Projects
Commit ac942d2b authored by Daniel Müller's avatar Daniel Müller
Browse files

Merge branch 'dev/clean_up' into 'master'

clean up and extension

See merge request !11
parents 12517fcc 7266a5e7
No related branches found
Tags 0.1.7
1 merge request!11clean up and extension
......@@ -51,8 +51,6 @@ find_package(catkin REQUIRED COMPONENTS
add_message_files(
FILES
RGBDFrame.msg
NodeProcessingSummary.msg
ProcessingInfo.msg
# Note: Currently for used for backwards compatibility of e.g. bag files
RGBDFrameOrig.msg
......@@ -64,6 +62,9 @@ add_message_files(
Detection2D.msg
Detections2D.msg
YoloRGBDFrame.msg
Normal.msg
NormalStamped.msg
)
## Generate services in the 'srv' folder
......@@ -104,8 +105,8 @@ generate_messages(
## CATKIN_DEPENDS: catkin_packages dependent projects also need
## DEPENDS: system dependencies of this project that dependent projects also need
catkin_package(
INCLUDE_DIRS
include
#INCLUDE_DIRS
# include
#LIBRARIES homer_msgs
CATKIN_DEPENDS
message_runtime
......@@ -123,7 +124,7 @@ catkin_package(
## Specify additional locations of header files
## Your package locations should be listed before other locations
include_directories(
include
#include
${catkin_INCLUDE_DIRS}
)
......
#pragma once
#include <ros/ros.h>
#include <homer_msgs/NodeProcessingSummary.h>
#include <homer_msgs/ProcessingInfo.h>
namespace processing_log
{
/**
* This message should be called on msg receival.
*/
homer_msgs::NodeProcessingSummary& create_entry_for_this_node(homer_msgs::RGBDFrame& frame)
{
const auto receiving_time = ros::Time::now();
frame.processing_log.emplace_back();
auto& log = frame.processing_log.back();
log.receiving_time = receiving_time;
log.node_name = ros::this_node::getName();
return log;
};
homer_msgs::ProcessingInfo& create_new_task(homer_msgs::NodeProcessingSummary& summary)
{
summary.tasks.emplace_back();
return summary.tasks.back();
}
} // namespace processing_log
# Basic information, usually used for node name and message handling times
string node_name
time receiving_time
time sending_time
# Log times of sub tasks executed by e.g. node
homer_msgs/ProcessingInfo[] tasks
geometry_msgs/Point origin
geometry_msgs/Vector3 direction
std_msgs/Header header
homer_msgs/Normal normal
string task_name
time starting_time
time ending_time
......@@ -2,6 +2,3 @@ std_msgs/Header header
sensor_msgs/PointCloud2 point_cloud
sensor_msgs/Image rgb_image
sensor_msgs/Image range_image
# Log, which nodes processed given frame
homer_msgs/NodeProcessingSummary[] processing_log
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment