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
No related tags found
1 merge request!11clean up and extension
...@@ -51,8 +51,6 @@ find_package(catkin REQUIRED COMPONENTS ...@@ -51,8 +51,6 @@ find_package(catkin REQUIRED COMPONENTS
add_message_files( add_message_files(
FILES FILES
RGBDFrame.msg RGBDFrame.msg
NodeProcessingSummary.msg
ProcessingInfo.msg
# Note: Currently for used for backwards compatibility of e.g. bag files # Note: Currently for used for backwards compatibility of e.g. bag files
RGBDFrameOrig.msg RGBDFrameOrig.msg
...@@ -64,6 +62,9 @@ add_message_files( ...@@ -64,6 +62,9 @@ add_message_files(
Detection2D.msg Detection2D.msg
Detections2D.msg Detections2D.msg
YoloRGBDFrame.msg YoloRGBDFrame.msg
Normal.msg
NormalStamped.msg
) )
## Generate services in the 'srv' folder ## Generate services in the 'srv' folder
...@@ -104,8 +105,8 @@ generate_messages( ...@@ -104,8 +105,8 @@ generate_messages(
## CATKIN_DEPENDS: catkin_packages dependent projects also need ## CATKIN_DEPENDS: catkin_packages dependent projects also need
## DEPENDS: system dependencies of this project that dependent projects also need ## DEPENDS: system dependencies of this project that dependent projects also need
catkin_package( catkin_package(
INCLUDE_DIRS #INCLUDE_DIRS
include # include
#LIBRARIES homer_msgs #LIBRARIES homer_msgs
CATKIN_DEPENDS CATKIN_DEPENDS
message_runtime message_runtime
...@@ -123,7 +124,7 @@ catkin_package( ...@@ -123,7 +124,7 @@ catkin_package(
## Specify additional locations of header files ## Specify additional locations of header files
## Your package locations should be listed before other locations ## Your package locations should be listed before other locations
include_directories( include_directories(
include #include
${catkin_INCLUDE_DIRS} ${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 ...@@ -2,6 +2,3 @@ std_msgs/Header header
sensor_msgs/PointCloud2 point_cloud sensor_msgs/PointCloud2 point_cloud
sensor_msgs/Image rgb_image sensor_msgs/Image rgb_image
sensor_msgs/Image range_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