9 #include <mc_rtc/config.h>
11 #include <SpaceVecAlg/SpaceVecAlg>
13 #include <Eigen/Geometry>
19 #ifdef MC_RTC_ROS_IS_ROS2
38 struct MCGlobalController;
46 #ifdef MC_RTC_ROS_IS_ROS2
68 static void set_publisher_timestep(
double timestep);
81 static void init_robot_publisher(
const std::string & publisher,
84 bool use_real =
false);
95 static void update_robot_publisher(
const std::string & publisher,
double dt,
const mc_rbdyn::Robot & robot);
101 static void stop_robot_publisher(
const std::string & publisher);
104 static void shutdown();
107 static ROSBridgeImpl & impl_();
110 struct RobotPublisherImpl;
132 RobotPublisher(
const std::string & prefix,
double rate,
double dt);
144 void set_rate(
double rate);
147 std::unique_ptr<RobotPublisherImpl> impl;