log_decorator.cpp
Go to the documentation of this file.
2 
3 LogDecorator::LogDecorator(std::unique_ptr<AbstractRobotElement> next)
4 : AbstractRobotElementDecorator(std::move(next))
5 {
6  ROS_INFO("LOG Decorator: %s", next_->name().c_str());
7 }
8 
10  ROS_INFO("--- Debug: %s --- State: PRE UPDATE", next_->name().c_str());
11  ROS_INFO("=> Debug: pos('%f', '%f', '%f')", worldTf().getOrigin().getX(), worldTf().getOrigin().getY(), worldTf().getOrigin().getZ());
12  ROS_INFO("=> Debug: orientation('%f', '%f', '%f', '%f')", worldTf().getRotation().getX(), worldTf().getRotation().getY(), worldTf().getRotation().getZ(), worldTf().getRotation().getW());
13 }
14 
15 void LogDecorator::update(tf2::Transform& tf) {
16  inputFilter();
18  outputFilter();
19 }
20 
22  ROS_INFO("--- Debug: %s --- State: POST UPDATE", next_->name().c_str());
23  ROS_INFO("=> Debug: pos('%f', '%f', '%f')", worldTf().getOrigin().getX(), worldTf().getOrigin().getY(), worldTf().getOrigin().getZ());
24  ROS_INFO("=> Debug: orientation('%f', '%f', '%f', '%f')", worldTf().getRotation().getX(), worldTf().getRotation().getY(), worldTf().getRotation().getZ(), worldTf().getRotation().getW());
25 }
26 
log_decorator.h
AbstractRobotElementDecorator::update
void update(tf2::Transform &tf) override
Definition: abstract_robot_element_decorator.h:26
LogDecorator::outputFilter
void outputFilter() override
Definition: log_decorator.cpp:21
AbstractRobotElementDecorator::worldTf
tf2::Transform & worldTf() override
Definition: abstract_robot_element_decorator.h:20
LogDecorator::update
void update(tf2::Transform &tf) override
Definition: log_decorator.cpp:15
LogDecorator::LogDecorator
LogDecorator(std::unique_ptr< AbstractRobotElement > next)
Definition: log_decorator.cpp:3
AbstractRobotElementDecorator
Definition: abstract_robot_element_decorator.h:7
AbstractRobotElementDecorator::next_
std::unique_ptr< AbstractRobotElement > next_
Definition: abstract_robot_element_decorator.h:10
LogDecorator::inputFilter
void inputFilter() override
Definition: log_decorator.cpp:9


multi_cell_builder
Author(s): Matteo Anedda
autogenerated on Sun Apr 9 2023 23:59:51