22 #include "../ism_helper.hpp" 26 #include <boost/shared_ptr.hpp> 27 #include <boost/thread.hpp> 33 #include <asr_ism_visualizations/ObjectModelVisualizerRVIZ.hpp> 34 #include <asr_msgs/AsrObject.h> 37 #include <ISM/common_type/Object.hpp> 168 void getNodeParameters(std::string& object_topic,
int& queue_size,
int& object_input_thread_count, std::string& base_frame,
bool& ignore_types,
bool& ignore_ids,
bool& use_confidence_from_msg,
169 int& enable_rotation_mode, std::string& rotation_frame, std::string& rotation_object_type, std::string& rotation_object_id,
170 bool& enable_neighborhood_evaluation,
double& neighbour_angle_threshold,
double& neighbour_distance_threshold,
171 int& keyboard_poll_rate,
double& automatic_processing_interval, std::string& visualization_topic);
ProcessKeyboardInputFunction processKeyboardInputFunc_
SceneConfigurator(ProcessConfigurationFunction processConfigFunc, ProcessKeyboardInputFunction processKeyboardInputFunc=ProcessKeyboardInputFunction(), ProcessObjectInputFunction processObjectInputFunc=ProcessObjectInputFunction())
void objectInputCallback(const asr_msgs::AsrObject &object)
void keyboardInputMain(const unsigned int poll_rate)
boost::function< void(ISM::ObjectSetPtr)> ProcessConfigurationFunction
void updateVisualizationCallback(const ros::TimerEvent &e)
boost::function< void(int)> ProcessKeyboardInputFunction
void automaticProcessingCallback(const ros::TimerEvent &e)
ros::CallbackQueue object_queue_
boost::function< void(ISM::ObjectPtr)> ProcessObjectInputFunction
termios original_terminal_settings_
void getNodeParameters(std::string &object_topic, int &queue_size, int &object_input_thread_count, std::string &base_frame, bool &ignore_types, bool &ignore_ids, bool &use_confidence_from_msg, int &enable_rotation_mode, std::string &rotation_frame, std::string &rotation_object_type, std::string &rotation_object_id, bool &enable_neighborhood_evaluation, double &neighbour_angle_threshold, double &neighbour_distance_threshold, int &keyboard_poll_rate, double &automatic_processing_interval, std::string &visualization_topic)
ProcessObjectInputFunction processObjectInputFunc_
ros::AsyncSpinner * spinner_
bool getAutomaticProcessingActive()
ros::Timer visualization_timer_
void processKeyboardInput()
boost::thread * keyboard_thread_
ros::Publisher visualization_publisher_
bool use_only_marked_objects_
void processConfiguration()
VIZ::ObjectModelVisualizerRVIZ * object_model_visualizer_
termios modified_terminal_settings_
IH::ObjectConverterPtr object_msg_converter_
ros::Subscriber object_input_subscriber_
ProcessConfigurationFunction processConfigurationFunc_
ros::Timer automatic_processing_timer_
bool automatic_processing_active_
SceneConfiguratorData * data_