43 std::string
const& key,
50 bool check_and_get_param<std::string>(
52 std::string
const& key,
57 value = (std::string&)config_node[key];
77 const std::string
CommandPort =
"optitrack_config/command_port";
78 const std::string
DataPort =
"optitrack_config/data_port";
80 const std::string
Version =
"optitrack_config/version";
163 for (
auto const& iter : bodyList)
165 std::string strBodyId = iter.first;
172 std::sscanf(strBodyId.c_str(),
"%d", &publisherConfig.
rigidBodyId);
177 if (!readPoseTopicName)
180 " for body `" << publisherConfig.
rigidBodyId <<
"`. Pose publishing disabled.");
191 if (!readPose2dTopicName)
194 " for body `" << publisherConfig.
rigidBodyId <<
"`. Pose publishing disabled.");
205 if (!readOdomTopicName)
208 " for body `" << publisherConfig.
rigidBodyId <<
"`. Odom publishing disabled.");
218 if (!readEnableTfPublisher)
221 " for body `" << publisherConfig.
enableTfPublisher <<
"`. Tf publishing disabled.");
235 if (!readChildFrameId || !readParentFrameId || !publisherConfig.
publishTf)
236 {
if (!readEnableTfPublisher)
238 " for body `" << publisherConfig.
rigidBodyId <<
"`. TF publishing disabled.");
239 if (!readChildFrameId)
241 " for body `" << publisherConfig.
rigidBodyId <<
"`. TF publishing disabled.");
243 if (!readParentFrameId)
245 " for body `" << publisherConfig.
rigidBodyId <<
"`. TF publishing disabled.");
254 pubConfigs.push_back(publisherConfig);
const std::string MulticastIpAddress
const std::string EnableOptitrack
const std::string DataPort
static const int DataPort
const std::string EnableTfPublisher
const std::string ParentFrameId
ValueStruct::iterator iterator
const std::string RigidBodies
const std::string Pose2dTopicName
std::string multicastIpAddress
Type const & getType() const
static void fromRosParam(ros::NodeHandle &nh, ServerDescription &serverDescription, PublisherConfigurations &pubConfigs)
static const int CommandPort
static const std::string MulticastIpAddress
Version class containing the version information and helpers for comparison.
const std::string CommandPort
const std::string OdomTopicName
std::string enableTfPublisher
bool check_and_get_param(XmlRpc::XmlRpcValue &config_node, std::string const &key, T &value)
ROS publisher configuration.
std::string odomTopicName
std::string pose2dTopicName
#define ROS_WARN_STREAM(args)
const std::string Version
std::string parentFrameId
std::vector< PublisherConfiguration > PublisherConfigurations
std::string poseTopicName
bool getParam(const std::string &key, std::string &s) const
const std::string ChildFrameId
std::vector< int > version
bool hasParam(const std::string &key) const
const std::string PoseTopicName
Server communication info.
static const bool EnableOptitrack