Go to the documentation of this file. 1 #include <ros/console.h>
2 #include <ros/duration.h>
4 #include <ros/master.h>
6 #include <ros/node_handle.h>
13 int main(
int argc,
char **argv)
21 ros::init(argc, argv,
"rgbd_viewer");
22 ros::NodeHandle nh_private(
"~");
25 nh_private.getParam(
"rate", rate);
28 client.
initialize(ros::names::resolve(argv[1]));
32 ros::WallTime last_master_check = ros::WallTime::now();
37 if (ros::WallTime::now() >= last_master_check + ros::WallDuration(1))
39 last_master_check = ros::WallTime::now();
40 if (!ros::master::check())
42 ROS_FATAL(
"Lost connection to master");
double getOpticalCenterY() const
const cv::Mat & getDepthImage() const
Get the depth image.
double getTimestamp() const
Get the timestamp.
double getOpticalTranslationX() const
const geo::DepthCamera & getRasterizer() const
int main(int argc, char **argv)
bool initialize(const std::string &server_name, float timeout=5.0)
Initialize the client.
double getFocalLengthX() const
const cv::Mat & getRGBImage() const
Get the RGB color image.
double getOpticalTranslationY() const
double getFocalLengthY() const
Client which uses the interfaces of ClientRGBD and ClientSHM.
double getOpticalCenterX() const
bool nextImage(Image &image)
Get a new Image. If no new image has been received since the last call, no image will be written and ...