void empty_application_t::set_selected_path(const std::string& path)
 {
     std::string name;
     std::string subpath;
     boost::tie(name, subpath) = reverse_split_path(path);
     selected_path = name;
     PRX_DEBUG_COLOR("The selected path is now: " << selected_path.c_str(),PRX_TEXT_GREEN);
 }
        void collision_stop_simulator_t::set_previous_state(const std::string& path)
        {
            std::string name_to_check;
            std::string name;
            std::string subpath;


            // remove the /geometry_name from the end of the path;
            boost::tie(name_to_check, subpath) = reverse_split_path(path);
            if( plants.find(name_to_check) != plants.end() )
            {
                std::pair<unsigned, unsigned> interval = system_intervals[(system_t*)plants[name_to_check]];
                for( unsigned i = interval.first; i < interval.second; i++ )
                {
                    state->at(i) = prev_state->at(i);
                }
            }
        }