5 #include <sensor_msgs/CameraInfo.h> 15 #include <ensenso_camera_msgs/AccessTreeAction.h> 16 #include <ensenso_camera_msgs/CalibrateHandEyeAction.h> 17 #include <ensenso_camera_msgs/CalibrateWorkspaceAction.h> 18 #include <ensenso_camera_msgs/ExecuteCommandAction.h> 19 #include <ensenso_camera_msgs/FitPrimitiveAction.h> 20 #include <ensenso_camera_msgs/GetParameterAction.h> 21 #include <ensenso_camera_msgs/LocatePatternAction.h> 22 #include <ensenso_camera_msgs/ProjectPatternAction.h> 23 #include <ensenso_camera_msgs/RequestDataAction.h> 24 #include <ensenso_camera_msgs/SetParameterAction.h> 73 ParameterSet(std::string
const& name, NxLibItem
const& defaultParameters);
159 std::string
const& cameraFrame, std::string
const& targetFrame, std::string
const& robotFrame,
160 std::string
const& wristFrame);
169 void startServers()
const;
178 bool loadSettings(std::string
const& jsonFile,
bool saveAsDefaultParameters =
false);
183 void onAccessTree(ensenso_camera_msgs::AccessTreeGoalConstPtr
const& goal);
187 void onExecuteCommand(ensenso_camera_msgs::ExecuteCommandGoalConstPtr
const& goal);
192 void onGetParameter(ensenso_camera_msgs::GetParameterGoalConstPtr
const& goal);
196 void onSetParameter(ensenso_camera_msgs::SetParameterGoalConstPtr
const& goal);
201 void onRequestData(ensenso_camera_msgs::RequestDataGoalConstPtr
const& goal);
205 void onLocatePattern(ensenso_camera_msgs::LocatePatternGoalConstPtr
const& goal);
209 void onProjectPattern(ensenso_camera_msgs::ProjectPatternGoalConstPtr
const& goal);
213 void onCalibrateHandEye(ensenso_camera_msgs::CalibrateHandEyeGoalConstPtr
const& goal);
217 void onCalibrateWorkspace(ensenso_camera_msgs::CalibrateWorkspaceGoalConstPtr
const& goal);
221 void onFitPrimitive(ensenso_camera_msgs::FitPrimitiveGoalConstPtr
const& goal);
227 bool cameraIsAvailable()
const;
232 bool cameraIsOpen()
const;
244 void saveDefaultParameterSet();
253 void saveParameterSet(std::string name,
bool projectorWritten =
false);
274 std::vector<CalibrationPattern> collectPattern(
bool clearBuffer =
false)
const;
287 std::string
const& targetFrame =
"",
bool latestPatternOnly =
false)
const;
293 std::string
const& targetFrame =
"")
const;
305 bool useCachedTransformation =
false)
const;
312 void updateTransformations(
tf::Pose const& targetFrameTransformation)
const;
323 void fillCameraInfoFromNxLib(sensor_msgs::CameraInfoPtr
const& info,
bool right,
bool rectified =
false)
const;
328 void updateCameraInfo();
330 ensenso_camera_msgs::ParameterPtr readParameter(std::string
const& key)
const;
331 void writeParameter(ensenso_camera_msgs::Parameter
const& parameter);
std::vector< tf::Pose > handEyeCalibrationRobotPoses
std::map< std::string, ParameterSet > parameterSets
image_transport::CameraPublisher leftRectifiedImagePublisher
std::unique_ptr< FitPrimitiveServer > fitPrimitiveServer
image_transport::CameraPublisher leftRawImagePublisher
tf::TransformBroadcaster transformBroadcaster
ros::Publisher statusPublisher
NxLibItem defaultParameters
std::unique_ptr< RequestDataServer > requestDataServer
image_transport::CameraPublisher rightRawImagePublisher
image_transport::Publisher disparityMapPublisher
ros::Publisher pointCloudPublisher
sensor_msgs::CameraInfoPtr leftCameraInfo
std::unique_ptr< SetParameterServer > setParameterServer
std::string handEyeCalibrationPatternBuffer
std::unique_ptr< LocatePatternServer > locatePatternServer
image_transport::CameraPublisher rightRectifiedImagePublisher
std::string fileCameraPath
sensor_msgs::CameraInfoPtr rightCameraInfo
std::unique_ptr< ExecuteCommandServer > executeCommandServer
std::unique_ptr< CalibrateWorkspaceServer > calibrateWorkspaceServer
tf::TransformListener transformListener
ParameterSet(std::string const &name, NxLibItem const &defaultParameters)
std::unique_ptr< AccessTreeServer > accessTreeServer
std::unique_ptr< GetParameterServer > getParameterServer
sensor_msgs::CameraInfoPtr leftRectifiedCameraInfo
std::map< std::string, tf::StampedTransform > transformationCache
std::string currentParameterSet
sensor_msgs::CameraInfoPtr rightRectifiedCameraInfo
std::unique_ptr< ProjectPatternServer > projectPatternServer
std::unique_ptr< CalibrateHandEyeServer > calibrateHandEyeServer
image_transport::CameraPublisher depthImagePublisher