Obtain camera render per grasp candidate. More...
#include "gen_renders.hh"Functions | |
| int | main (int _argc, char **_argv) |
| const std::string | getUsage (const char *argv_0) |
| Obtains usage string. More... | |
| void | parseArgs (int argc, char **argv, std::string &obj_cfg_dir, std::string &obj_rest_dir, std::string &grasp_cfg_dir, std::string &out_img_dir, std::string &robot) |
| Parses command-line arguments. More... | |
| void | setupCommunications (gazebo::transport::NodePtr &node, std::map< std::string, gazebo::transport::PublisherPtr > &pubs, std::map< std::string, gazebo::transport::SubscriberPtr > &subs) |
| Sets up gazebo communication pubs/subs. More... | |
| void | obtainTargets (std::vector< std::string > &targets, const std::string &file_name) |
| TODO. More... | |
| void | changeImagePrefix (gazebo::transport::PublisherPtr pub, const std::string &prefix) |
| TODO. More... | |
| void | captureFrame (gazebo::transport::PublisherPtr pub) |
| TODO. More... | |
| void | moveCamera (gazebo::transport::PublisherPtr pub, ignition::math::Pose3d &pose) |
| TODO. More... | |
| bool | waitingTrigger (std::mutex &mutex, bool &trigger) |
| Returns whether to keep waiting for trigger. More... | |
| void | onCameraResponse (CameraResponsePtr &_msg) |
| TODO. More... | |
| void | waitMs (int delay) |
| TODO. More... | |
Variables | |
| bool | g_finished {false} |
| Global setp finished flag. More... | |
| std::mutex | g_finished_mutex |
| Mutex for global step finished flag. More... | |
Obtain camera render per grasp candidate.
TODO
| void captureFrame | ( | gazebo::transport::PublisherPtr | pub | ) |
TODO.
| void changeImagePrefix | ( | gazebo::transport::PublisherPtr | pub, |
| const std::string & | prefix | ||
| ) |
TODO.
| const std::string getUsage | ( | const char * | argv_0 | ) |
Obtains usage string.
Returns usage string.
| argv_0 | Name of the executable |
| int main | ( | int | _argc, |
| char ** | _argv | ||
| ) |
| void moveCamera | ( | gazebo::transport::PublisherPtr | pub, |
| ignition::math::Pose3d & | pose | ||
| ) |
TODO.
| void obtainTargets | ( | std::vector< std::string > & | targets, |
| const std::string & | file_name | ||
| ) |
TODO.
Obtain list of models' names in dataset yml.
| void onCameraResponse | ( | CameraResponsePtr & | _msg | ) |
TODO.
| void parseArgs | ( | int | argc, |
| char ** | argv, | ||
| std::string & | obj_cfg_dir, | ||
| std::string & | obj_rest_dir, | ||
| std::string & | grasp_cfg_dir, | ||
| std::string & | out_img_dir, | ||
| std::string & | robot | ||
| ) |
Parses command-line arguments.
| argc | Argument count |
| argv | Arguments |
| obj_cfg_dir | Path to object dataset yaml |
| obj_rest_dir | Path to object rest poses yaml |
| grasp_cfg_dir | Path to grasp candidates yaml |
| out_img_dir | Directory for output images |
| robot | Robot to use |
| void setupCommunications | ( | gazebo::transport::NodePtr & | node, |
| std::map< std::string, gazebo::transport::PublisherPtr > & | pubs, | ||
| std::map< std::string, gazebo::transport::SubscriberPtr > & | subs | ||
| ) |
Sets up gazebo communication pubs/subs.
| node | Gazebo communication node pointer |
| pubs | Resulting map of publishers |
| subs | Resulting map of subscribers |
| bool waitingTrigger | ( | std::mutex & | mutex, |
| bool & | trigger | ||
| ) |
Returns whether to keep waiting for trigger.
| mutex | Mutex that protects trigger variable |
| trigger | Trigger boolean variable |
|
inline |
TODO.
Waits for delay milliseconds.
| bool g_finished {false} |
Global setp finished flag.
| std::mutex g_finished_mutex |
Mutex for global step finished flag.