Public Member Functions | |
ObjectConfigurationGenerator () | |
~ObjectConfigurationGenerator () | |
Private Types | |
enum | SelectEntity { Previous = -1, Next = 1 } |
Private Member Functions | |
void | getNodeParameters (std::vector< std::string > &patternNames, std::string &configFilePath) |
Read node parameters. More... | |
void | initFromDatabase (std::vector< std::string > &patternNames) |
Read tracks from the scenes specified by patternNames from database and store them in the appropriate members. More... | |
void | initInteractiveControl () |
Sets up keyboard control. More... | |
bool | isMarked (const ISM::ObjectPtr &obj) |
Checks if object is marked. More... | |
void | keyboardInputCallback (const ros::TimerEvent &e) |
Function that handles user keyboard input and calls the appropriate functions. More... | |
void | loadConstellationFromConfigFile (const std::string &configFilePath) |
Loads a configuration from an xml file located at configFilePath;mDbFilename. More... | |
void | markOrUnmark () |
If the currently selected pose is marked, it gets unmarked, else it gets marked. More... | |
bool | parsePoseString (std::string pose_string, ISM::PosePtr &pose, std::string delim, std::string angles) |
Creates a ISM::PosePtr from a pose_string. More... | |
void | printEditModeHelpText () |
void | printMarkedObjects () |
void | printNormalHelpText () |
void | rotate (double alpha, double beta, double gamma, ISM::PosePtr pose) |
Rotates the given pose by the values specified by the arguments. More... | |
void | runEditMode () |
Start and run edit mode in which the pose of the selected object can be manipulated. More... | |
void | switchObject (SelectEntity neighbor) |
Switch to the neighbor object. More... | |
void | switchPose (SelectEntity neighbor) |
Switch to the neighbor pose in the trajectory. More... | |
void | translate (double x, double y, double z, ISM::PosePtr pose) |
Translates the given pose by the values specified by the arguments. More... | |
void | visualize () |
Visulize the currently selected pose, all poses that are in the same trajectory and one pose of each other object. More... | |
void | writeMarkedPosesToFile () |
Writes the type, observedId, path to the mesh and its pose to an xml file. More... | |
Private Attributes | |
std::string | baseFrame |
std::vector< bool > | editFlags |
const std_msgs::ColorRGBA | IN_CURRENT_TRACK = VIZ::VizHelperRVIZ::createColorRGBA(0, 1.0, 0, 1) |
ros::Timer | keyboardTimer |
bool | keyPressed |
const std_msgs::ColorRGBA | MARKED = VIZ::VizHelperRVIZ::createColorRGBA(1.0, 0.0, 0.0, 1.0) |
std::set< std::string > | markedObjects |
visualization_msgs::MarkerArray | markerArray |
const double | markerLifetime = 0.0 |
std::string | markerNamespace = "object_configuration" |
std::string | mDbFilename |
ros::NodeHandle | nh |
std::vector< std::pair< ISM::ObjectPtr, std::vector< ISM::PosePtr > > > | objectAndPoses |
unsigned int | objectCounter = 0 |
std::string | output_file_path |
std::vector< unsigned int > | poseCounters |
const std_msgs::ColorRGBA | SELECTED = VIZ::VizHelperRVIZ::createColorRGBA(1.0, 0.0, 1.0, 1.0) |
float | sphere_radius = 0.01 |
ISM::TableHelperPtr | tableHandler |
ros::Publisher | visualization_pub |
std::string | visualizationTopic |
const std_msgs::ColorRGBA | X_AXIS = VIZ::VizHelperRVIZ::createColorRGBA(1.0, 0.0, 0.0, 0.5) |
const std_msgs::ColorRGBA | Y_AXIS = VIZ::VizHelperRVIZ::createColorRGBA(0.0, 1.0, 0.0, 0.5) |
const std_msgs::ColorRGBA | Z_AXIS = VIZ::VizHelperRVIZ::createColorRGBA(0.0, 0.0, 1.0, 0.5) |
Definition at line 66 of file object_configuration_generator.cpp.
|
private |
Enumerator | |
---|---|
Previous | |
Next |
Definition at line 361 of file object_configuration_generator.cpp.
|
inline |
Definition at line 71 of file object_configuration_generator.cpp.
|
inline |
Definition at line 127 of file object_configuration_generator.cpp.
|
inlineprivate |
Read node parameters.
patternName | the name of the scene |
Definition at line 138 of file object_configuration_generator.cpp.
|
inlineprivate |
Read tracks from the scenes specified by patternNames from database and store them in the appropriate members.
patternNames | the names of the scenes. |
Definition at line 290 of file object_configuration_generator.cpp.
|
inlineprivate |
Sets up keyboard control.
Definition at line 406 of file object_configuration_generator.cpp.
|
inlineprivate |
Checks if object is marked.
Definition at line 669 of file object_configuration_generator.cpp.
|
inlineprivate |
Function that handles user keyboard input and calls the appropriate functions.
e | not used |
Definition at line 496 of file object_configuration_generator.cpp.
|
inlineprivate |
Loads a configuration from an xml file located at configFilePath;mDbFilename.
configFilePath | the location of the config file |
Definition at line 764 of file object_configuration_generator.cpp.
|
inlineprivate |
If the currently selected pose is marked, it gets unmarked, else it gets marked.
Definition at line 271 of file object_configuration_generator.cpp.
|
inlineprivate |
Creates a ISM::PosePtr from a pose_string.
pose_string | contains x, y, z values and angles |
pose | the resulting pose is stored here |
delim | the symbols that separate values in pose_string |
Definition at line 831 of file object_configuration_generator.cpp.
|
inlineprivate |
Print edit mode help text.
Definition at line 448 of file object_configuration_generator.cpp.
|
inlineprivate |
Print marked objects on console.
Definition at line 467 of file object_configuration_generator.cpp.
|
inlineprivate |
Print possible commands on console.
Definition at line 426 of file object_configuration_generator.cpp.
|
inlineprivate |
Rotates the given pose by the values specified by the arguments.
alpha | rotation angle in degree around the x-axis. |
beta | rotation angle in degree around the y-axis. |
gamma | rotation angle in degree around the z-axis. |
pose | the pose that is to be rotated. |
Definition at line 722 of file object_configuration_generator.cpp.
|
inlineprivate |
Start and run edit mode in which the pose of the selected object can be manipulated.
Definition at line 556 of file object_configuration_generator.cpp.
|
inlineprivate |
Switch to the neighbor object.
Definition at line 366 of file object_configuration_generator.cpp.
|
inlineprivate |
Switch to the neighbor pose in the trajectory.
Definition at line 388 of file object_configuration_generator.cpp.
|
inlineprivate |
Translates the given pose by the values specified by the arguments.
x | the offset in meters by which the pose is translated along the x-axis. |
y | the offset in meters by which the pose is translated along the y-axis. |
z | the offset in meters by which the pose is translated along the z-axis. |
pose | the pose that is to be translated. |
Definition at line 743 of file object_configuration_generator.cpp.
|
inlineprivate |
Visulize the currently selected pose, all poses that are in the same trajectory and one pose of each other object.
Definition at line 185 of file object_configuration_generator.cpp.
|
inlineprivate |
Writes the type, observedId, path to the mesh and its pose to an xml file.
Definition at line 677 of file object_configuration_generator.cpp.
|
private |
Definition at line 889 of file object_configuration_generator.cpp.
|
private |
Definition at line 899 of file object_configuration_generator.cpp.
|
private |
Definition at line 910 of file object_configuration_generator.cpp.
|
private |
Definition at line 919 of file object_configuration_generator.cpp.
|
private |
Definition at line 904 of file object_configuration_generator.cpp.
|
private |
Definition at line 909 of file object_configuration_generator.cpp.
|
private |
Definition at line 886 of file object_configuration_generator.cpp.
|
private |
Definition at line 916 of file object_configuration_generator.cpp.
|
private |
Definition at line 895 of file object_configuration_generator.cpp.
|
private |
Definition at line 893 of file object_configuration_generator.cpp.
|
private |
Definition at line 888 of file object_configuration_generator.cpp.
|
private |
Definition at line 882 of file object_configuration_generator.cpp.
|
private |
Definition at line 885 of file object_configuration_generator.cpp.
|
private |
Definition at line 897 of file object_configuration_generator.cpp.
|
private |
Definition at line 901 of file object_configuration_generator.cpp.
|
private |
Definition at line 898 of file object_configuration_generator.cpp.
|
private |
Definition at line 908 of file object_configuration_generator.cpp.
|
private |
Definition at line 906 of file object_configuration_generator.cpp.
|
private |
Definition at line 883 of file object_configuration_generator.cpp.
|
private |
Definition at line 890 of file object_configuration_generator.cpp.
|
private |
Definition at line 892 of file object_configuration_generator.cpp.
|
private |
Definition at line 912 of file object_configuration_generator.cpp.
|
private |
Definition at line 913 of file object_configuration_generator.cpp.
|
private |
Definition at line 914 of file object_configuration_generator.cpp.