35 #include <boost/interprocess/sync/scoped_lock.hpp> 39 #include <mrpt_bridge/beacon.h> 43 #include <mrpt/version.h> 44 #include <mrpt/obs/CSensoryFrame.h> 45 #include <mrpt/obs/CRawlog.h> 46 #include <mrpt/obs/CObservation2DRangeScan.h> 47 #include <mrpt/obs/CObservationBeaconRanges.h> 48 #include <mrpt/obs/CObservationBearingRange.h> 51 #if MRPT_VERSION >= 0x199 52 #include <mrpt/serialization/CArchive.h> 55 int main(
int argc,
char** argv)
95 const mrpt::obs::CObservation::Ptr& o)
98 o->getSensorPose(pose_sensor);
103 #if MRPT_VERSION >= 0x199 117 std::string childframe =
132 std::string childframe =
147 std::string childframe =
159 "Observation mapping to ROS not implemented: %s",
160 o->GetRuntimeClass()->className);
166 CActionCollection::Ptr
action;
167 CSensoryFrame::Ptr observations;
168 CObservation::Ptr
obs;
170 #if MRPT_VERSION >= 0x199 176 if (!CRawlog::getActionObservationPairOrObservation(
177 rs, action, observations, obs,
entry_))
190 action->getFirstMovementEstimation(out_pose_increment);
int main(int argc, char **argv)
ros::Publisher pub_landmark_
void publish(const boost::shared_ptr< M > &message) const
bool BASE_IMPEXP fileExists(const std::string &fileName)
ROSCPP_DECL void init(int &argc, char **argv, const std::string &name, uint32_t options=0)
RawlogPlayNode(ros::NodeHandle &n)
sensor_msgs::LaserScan msg_laser_
GLuint GLenum GLenum transform
void update(const unsigned long &loop_count)
std::string resolve(const std::string &prefix, const std::string &frame_name)
mrpt::poses::CPose3DPDFGaussian robotPose
nav_msgs::Odometry msg_odom_
void publishSingleObservation(const mrpt::obs::CObservation::Ptr &o)
mrpt_msgs::ObservationRangeBearing msg_landmark_
Publisher advertise(const std::string &topic, uint32_t queue_size, bool latch=false)
tf::TransformBroadcaster tf_broadcaster_
void convert(const ros::Time &src, mrpt::system::TTimeStamp &des)
static CAST_TO::Ptr from(const CAST_FROM_PTR &ptr)
ROSCPP_DECL void shutdown()
ros::Publisher pub_beacon_
#define IS_CLASS(ptrObj, class_name)
ROSCPP_DECL void spinOnce()
unsigned long loop_count_
mrpt_msgs::ObservationRangeBeacon msg_beacon_
ros::Publisher pub_laser_
CFileGZInputStream rawlog_stream_