51 class PoseSubscriberSingleton
55 void _get_pose_subscriber_callback(
const gz::msgs::Pose_V& msg)
57 std::unique_lock<std::mutex> lock(msg_mutex, std::try_to_lock);
58 if (lock.owns_lock()) {
59 poses_from_gazebo_ = msg;
62 gz::transport::Node gazebo_node_;
63 gz::msgs::Pose_V poses_from_gazebo_;
66 static std::unique_ptr<PoseSubscriberSingleton> pose_subscriber_;
67 std::shared_ptr<ObjectServer> object_server_;
69 std::string gazebo_entity_name_;
70 std::string gazebo_set_pose_service_name_;
72 gz::transport::Node gazebo_node_;
73 gz::msgs::Pose pose_to_gazebo_msg_;
74 DQ last_pose_to_gazebo_{0};
76 void _set_pose_service_response_callback(
const gz::msgs::Boolean&,
const bool);
83 const std::string& gazebo_entity_name,
84 const std::string& gazebo_set_pose_service_name,
85 const std::string& gazebo_world_dynamic_pose_topic);