18#define DEFAULT_THREAD_PERIOD 0.01
21#define M_PI 3.14159265358979323846
28#define CHECK_POINTER(xxx) {if (xxx==nullptr) {yCError(LOCALIZATION2DSERVER, "Invalid interface"); return false;}}
32 std::lock_guard <std::mutex>
lg(m_mutex);
44 std::lock_guard <std::mutex>
lg(m_mutex);
56 std::lock_guard <std::mutex>
lg(m_mutex);
61 ret.ret = ReturnValue::return_code::return_value_ok;
82 std::lock_guard <std::mutex>
lg(m_mutex);
85 std::vector<yarp::dev::Nav2D::Map2DLocation> poses;
100 std::lock_guard <std::mutex>
lg(m_mutex);
105 ret.ret = ReturnValue::return_code::return_value_ok;
125 std::lock_guard <std::mutex>
lg(m_mutex);
145 std::lock_guard <std::mutex>
lg(m_mutex);
150 ret.ret = ReturnValue::return_code::return_value_ok;
170 std::lock_guard <std::mutex>
lg(m_mutex);
182 std::lock_guard <std::mutex>
lg(m_mutex);
yarp::dev::OdometryData m_current_odometry
return_get_current_position1 get_current_position1_RPC() override
return_get_current_position2 get_current_position2_RPC() override
yarp::dev::ReturnValue stop_localization_service_RPC() override
yarp::dev::ReturnValue set_initial_pose1_RPC(const yarp::dev::Nav2D::Map2DLocation &loc) override
yarp::dev::Nav2D::LocalizationStatusEnum m_current_status
yarp::dev::ReturnValue start_localization_service_RPC() override
return_get_estimated_odometry get_estimated_odometry_RPC() override
return_get_localization_status get_localization_status_RPC() override
bool m_getdata_using_periodic_thread
yarp::dev::ReturnValue set_initial_pose2_RPC(const yarp::dev::Nav2D::Map2DLocation &loc, const yarp::sig::Matrix &cov) override
yarp::dev::Nav2D::Map2DLocation m_current_position
return_get_estimated_poses get_estimated_poses_RPC() override
virtual yarp::dev::ReturnValue stopLocalizationService()=0
Stops the localization service.
virtual yarp::dev::ReturnValue getLocalizationStatus(LocalizationStatusEnum &status)=0
Gets the current status of the localization task.
virtual yarp::dev::ReturnValue setInitialPose(const yarp::dev::Nav2D::Map2DLocation &loc)=0
Sets the initial pose for the localization algorithm which estimates the current position of the robo...
virtual yarp::dev::ReturnValue getCurrentPosition(yarp::dev::Nav2D::Map2DLocation &loc)=0
Gets the current position of the robot w.r.t world reference frame.
virtual yarp::dev::ReturnValue startLocalizationService()=0
Starts the localization service.
virtual yarp::dev::ReturnValue getEstimatedPoses(std::vector< yarp::dev::Nav2D::Map2DLocation > &poses)=0
Gets a set of pose estimates computed by the localization algorithm.
virtual yarp::dev::ReturnValue getEstimatedOdometry(yarp::dev::OdometryData &odom)=0
Gets the estimated odometry the robot, including its velocity expressed in the world and in the local...
A mini-server for performing network communication in the background.
#define yCError(component,...)
#define YARP_LOG_COMPONENT(name,...)
@ localization_status_error
For streams capable of holding different kinds of content, check what they actually have.
An interface to the operating system, including Port based communication.