Client which uses the interfaces of ClientRGBD and ClientSHM.
More...
#include <client.h>
Client which uses the interfaces of ClientRGBD and ClientSHM.
Definition at line 29 of file client.h.
◆ ClientImplMode
◆ Client()
◆ ~Client()
rgbd::Client::~Client |
( |
| ) |
|
|
virtual |
◆ deinitialize()
bool rgbd::Client::deinitialize |
( |
| ) |
|
Calls deinitialize on implementation clients. Shutsdown both implementations and deletes nh_. initialized will now return false.
- Returns
- indicates success
Definition at line 54 of file client.cpp.
◆ hostsCallback()
void rgbd::Client::hostsCallback |
( |
const std_msgs::StringConstPtr & |
msg | ) |
|
|
protected |
◆ initialize()
bool rgbd::Client::initialize |
( |
const std::string & |
server_name, |
|
|
float |
timeout = 5.0 |
|
) |
| |
Initialize the client.
- Parameters
-
server_name | Fully resolved server name |
timeout | Timeout used to initialize each interface, currently only the ClientSHM interface requires a timeout |
- Returns
- indicates success
Definition at line 34 of file client.cpp.
◆ initialized()
bool rgbd::Client::initialized |
( |
| ) |
|
|
inline |
Check if the client is initialized. Checks if nh_ is exists. nextImage will not return an image if client is not initialized.
- Returns
- initialized or not
Definition at line 62 of file client.h.
◆ nextImage() [1/2]
Get a new Image. If no new image has been received since the last call, The ImagePtr will be a nullptr.
- Returns
- ImagePtr to an Image or a nullptr
Definition at line 87 of file client.cpp.
◆ nextImage() [2/2]
bool rgbd::Client::nextImage |
( |
Image & |
image | ) |
|
Get a new Image. If no new image has been received since the last call, no image will be written and false will be returned.
- Parameters
-
image | Image reference which will be written. |
- Returns
- valid image written
Definition at line 76 of file client.cpp.
◆ subHostsThreadFunc()
void rgbd::Client::subHostsThreadFunc |
( |
const float |
frequency | ) |
|
|
protected |
◆ cb_queue_
ros::CallbackQueue rgbd::Client::cb_queue_ |
|
protected |
◆ client_impl_mode_
◆ client_rgbd_
◆ client_shm_
◆ hostname_
◆ last_time_shm_server_online_
ros::WallTime rgbd::Client::last_time_shm_server_online_ |
|
protected |
◆ nh_
◆ server_name_
◆ sub_hosts_thread_
◆ sub_shm_hosts_
ros::Subscriber rgbd::Client::sub_shm_hosts_ |
|
protected |
◆ switch_impl_mutex_
The documentation for this class was generated from the following files: