47 m_ftContainer.
m_timeout = m_refreshInterval;
50 if (config.
check(
"ROS"))
55 m_topic =
ROS_config.find(
"ft_topic").asString();
58 m_topic_static =
ROS_config.find(
"ft_topic_static").asString();
61 m_nodeName =
ROS_config.find(
"ft_node").asString();
65 if (m_rosNode ==
nullptr)
69 if (!m_rosPublisherPort_tf_timed.
topic(m_topic))
74 if (!m_rosPublisherPort_tf_static.
topic(m_topic_static))
99 m_rosPublisherPort_tf_timed.
close();
100 m_rosPublisherPort_tf_static.
close();
107 std::lock_guard <std::mutex>
lg(m_trf_mutex);
113 std::vector<yarp::math::FrameTransform>
tempTfs;
124 std::lock_guard<std::mutex> lock(m_trf_mutex);
138 std::vector<yarp::math::FrameTransform>
tempTfs;
151 std::lock_guard<std::mutex> lock(m_trf_mutex);
165 std::vector<yarp::math::FrameTransform>
tempTfs;
181 output.transform.rotation.x = input.
rotation.
x();
182 output.transform.rotation.y = input.
rotation.
y();
183 output.transform.rotation.z = input.
rotation.
z();
184 output.transform.rotation.w = input.
rotation.
w();
185 output.transform.translation.x = input.
translation.tX;
186 output.transform.translation.y = input.
translation.tY;
187 output.transform.translation.z = input.
translation.tZ;
201 for(
auto&
tf : transforms)
216 m_rosPublisherPort_tf_timed.
write();
217 m_rosPublisherPort_tf_static.
write();
A simple collection of objects that can be described and transmitted in a portable way.
A mini-server for performing network communication in the background.
static bool checkNetwork()
Check if the YARP Network is up and running.
An abstraction for a periodic thread.
bool setPeriod(double period)
Set the (new) period of the thread.
bool isRunning() const
Returns true when the thread is started, false otherwise.
bool start()
Call this to start the thread.
void stop()
Call this to stop the thread, this call blocks until the thread is terminated (and releaseThread() ca...
void close() override
Stop port activity.
bool topic(const std::string &name)
Set topic to publish to.
void write(bool forceStrict=false)
Write the current object being returned by Publisher::prepare.
T & prepare()
Access the object which will be transmitted by the next call to yarp::os::Publisher::write.
A base class for nested structures that can be searched.
virtual bool check(const std::string &key) const =0
Check if there exists a property of the given name.
virtual Bottle & findGroup(const std::string &key) const =0
Gets a list corresponding to a given keyword.
#define yCInfo(component,...)
#define yCError(component,...)
#define yCTrace(component,...)
#define yCWarning(component,...)
#define YARP_LOG_COMPONENT(name,...)
For streams capable of holding different kinds of content, check what they actually have.
An interface to the operating system, including Port based communication.