ros_util.h
Go to the documentation of this file.
1 /*
2  * Copyright 2021, Rein Appeldoorn
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  *
16  */
17 
18 #pragma once
19 
20 #include <ros/package.h>
21 #include <string>
22 
23 namespace picovoice_driver
24 {
29 std::string defaultResourceUrl();
30 
36 std::string defaultRecordDirectory(const std::string& name);
37 
51 std::string pathFromUrl(const std::string& url, const std::string& extension = "", const std::string& directory = "");
52 } // namespace picovoice_driver
picovoice_driver::pathFromUrl
std::string pathFromUrl(const std::string &url, const std::string &extension, const std::string &directory)
pathFromUrl Get a file path from an url
Definition: ros_util.cpp:49
python.setup.url
url
Definition: porcupine/binding/python/setup.py:76
python.setup.name
name
Definition: porcupine/binding/python/setup.py:69
picovoice_driver::defaultRecordDirectory
std::string defaultRecordDirectory(const std::string &name)
defaultRecordDirectory Get the default record dir
Definition: ros_util.cpp:32
picovoice_driver
Definition: porcupine_node.cpp:24
package.h
picovoice_driver::defaultResourceUrl
std::string defaultResourceUrl()
defaultResourcePath Get the default resource path
Definition: ros_util.cpp:27


picovoice_driver
Author(s):
autogenerated on Fri Apr 1 2022 02:14:50