Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
38 changed files
with
1,122 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,15 @@ | ||
Header header | ||
string action | ||
string query | ||
string response | ||
bool fulfilled | ||
string parameters | ||
float32 speech_score | ||
float32 intent_score | ||
|
||
# query: The text send by user | ||
string query # The query created by user | ||
|
||
# action, response, parameters: The response from Dialogflow | ||
string action # Inferred action name, which is registered at Dialogflow config | ||
# Dialogflow has Default Fallback Intent by default, and it returns input.unknown as action name, when it gets unknown queries | ||
string response # The response from Dialogflow based on action name | ||
string parameters # The action's parameters | ||
|
||
# fulfilled, speech_score, intent_score: Parameters related to results | ||
bool fulfilled # Whether all required parameters are present | ||
float32 speech_score # Speech recognition confidence | ||
float32 intent_score # Intent detection confidence |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
cmake_minimum_required(VERSION 2.8.3) | ||
project(influxdb_store) | ||
|
||
find_package(catkin REQUIRED) | ||
|
||
catkin_python_setup() | ||
|
||
catkin_package() | ||
|
||
file(GLOB NODE_SCRIPTS_FILES node_scripts/*) | ||
catkin_install_python( | ||
PROGRAMS ${NODE_SCRIPTS_FILES} | ||
DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION} | ||
) | ||
|
||
install( | ||
DIRECTORY launch sample | ||
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION} | ||
USE_SOURCE_PERMISSIONS | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,161 @@ | ||
# influxdb_store | ||
|
||
ROS package for influxdb store | ||
|
||
![influxdb_grafana](./.media/influxdb_grafana.png) | ||
|
||
## Sample | ||
|
||
```bash | ||
roslaunch influxdb_store influxdb_logger.launch | ||
``` | ||
|
||
## Logger | ||
|
||
### `joint_states_logger.py` | ||
|
||
Logger for `sensor_msgs/JointStates` | ||
|
||
#### Subscribing topic | ||
|
||
- `~input` (`sensor_msgs/JointStates`) | ||
|
||
Joint states topic name | ||
|
||
#### Parameters | ||
|
||
- `~host` (default: `localhost`) | ||
|
||
Influxdb host address | ||
|
||
- `~port` (default: `8086`) | ||
|
||
Influxdb port number | ||
|
||
- `~database` (default: `test`) | ||
|
||
Influxdb database name | ||
|
||
### `map_transform_logger.py` | ||
|
||
Logger for transfrom relative to `map_frame` | ||
|
||
#### Parameters | ||
|
||
- `~host` (default: `localhost`) | ||
|
||
Influxdb host address | ||
|
||
- `~port` (default: `8086`) | ||
|
||
Influxdb port number | ||
|
||
- `~database` (default: `test`) | ||
|
||
Influxdb database name | ||
|
||
- `~map_frame_id` (default: `map`) | ||
|
||
Map frame id | ||
|
||
- `~update_rate` (default: `0.5`) | ||
|
||
Update rate | ||
|
||
### `battery_states_logger.py` | ||
|
||
Logger for `pr2_msgs/BatteryServer2` | ||
|
||
#### Subscribing topic | ||
|
||
- `~input` (`pr2_msgs/BatteryServer2`) | ||
|
||
Battery topic name | ||
|
||
#### Parameters | ||
|
||
- `~host` (default: `localhost`) | ||
|
||
Influxdb host address | ||
|
||
- `~port` (default: `8086`) | ||
|
||
Influxdb port number | ||
|
||
- `~database` (default: `test`) | ||
|
||
Influxdb database name | ||
|
||
### `network_states_logger.py` | ||
|
||
Logger for network information published by [`jsk_network_tools/network_status.py`](https://github.com/jsk-ros-pkg/jsk_common/tree/master/jsk_network_tools) | ||
|
||
#### Subscribing topic | ||
|
||
- `~input/receive` (`std_msgs/Float32`) | ||
|
||
receiving bps topic name | ||
|
||
- `~input/transmit` (`std_msgs/Float32`) | ||
|
||
Transmitting bps topic name | ||
|
||
#### Parameters | ||
|
||
- `~host` (default: `localhost`) | ||
|
||
Influxdb host address | ||
|
||
- `~port` (default: `8086`) | ||
|
||
Influxdb port number | ||
|
||
- `~database` (default: `test`) | ||
|
||
Influxdb database name | ||
|
||
## For JSK PR2 users | ||
|
||
### PR1012 | ||
|
||
```bash | ||
rossetip | ||
rossetmaster pr1012 | ||
roslaunch influxdb_store pr2_influxdb_logger.launch robot_name:=pr1012 | ||
``` | ||
|
||
### PR1040 | ||
|
||
```bash | ||
rossetip | ||
rossetmaster pr1040 | ||
roslaunch influxdb_store pr2_influxdb_logger.launch robot_name:=pr1040 | ||
``` | ||
|
||
### Fetch15 | ||
|
||
```bash | ||
rossetip | ||
rossetmaster fetch15 | ||
roslaunch influxdb_store fetch_influxdb_logger.launch robot_name:=fetch15 | ||
``` | ||
|
||
### Fetch1075 | ||
|
||
```bash | ||
rossetip | ||
rossetmaster fetch1075 | ||
roslaunch influxdb_store fetch_influxdb_logger.launch robot_name:=fetch1075 | ||
``` | ||
|
||
### Baxter | ||
|
||
```bash | ||
rossetip | ||
rossetmaster baxter | ||
roslaunch influxdb_store baxter_influxdb_logger.launch robot_name:=baxter | ||
``` | ||
|
||
### Systemctl services | ||
|
||
Please see [jsk_database](https://github.com/knorth55/jsk_database). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<launch> | ||
<arg name="host" /> | ||
<arg name="port" /> | ||
<arg name="database" /> | ||
<arg name="battery_states_topic" /> | ||
|
||
<node name="battery_states_logger" pkg="influxdb_store" type="fetch_battery_states_logger.py" | ||
output="screen" respawn="true" > | ||
<remap from="~input" to="$(arg battery_states_topic)" /> | ||
<rosparam subst_value="true"> | ||
host: $(arg host) | ||
port: $(arg port) | ||
database: $(arg database) | ||
</rosparam> | ||
</node> | ||
|
||
</launch> |
Oops, something went wrong.