No version for distro humble showing jazzy. Known supported distros are highlighted in the buttons above.

Package Summary

Version 3.0.2
License BSD-3-Clause
Build type CATKIN
Use RECOMMENDED

Repository Summary

Description
Checkout URI https://github.com/jsk-ros-pkg/jsk_3rdparty.git
VCS Type git
VCS Version master
Last Updated 2026-11-26
Dev Status DEVELOPED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Package Description

The influxdb_store package

Maintainers

  • Shingo Kitagawa

Authors

  • Shingo Kitagawa

influxdb_store

Loggers which store ROS topics and TF into InfluxDB (1.x), to be browsed with e.g. Grafana.

influxdb_grafana

Node ROS 1 ROS 2 What it stores
joint_states_logger.py ✓ ✓ sensor_msgs/JointState (position, velocity, effort)
network_states_logger.py ✓ ✓ Transmitted and received bps (std_msgs/Float32)
map_transform_logger.py ✓   All TF frames relative to map
base_transform_logger.py ✓   All TF frames relative to base_link
pr2_battery_states_logger.py ✓   PR2 batteries (pr2_msgs/BatteryServer2)
fetch_battery_states_logger.py ✓   Fetch battery (power_msgs/BatteryState)

The transform loggers use the tf2_frames service of the ROS 1 tf2_ros buffer server, and the battery loggers the messages of PR2 / Fetch, so they are on ROS 1 only. There are no ROS 2 launch files: run the nodes with ros2 run.

Requirements

An InfluxDB 1.x server (e.g. 1.8). The nodes use the 1.x Python client (python3-influxdb, InfluxDBClient) without authentication, and create the database (~database) if it does not exist; InfluxDB 2.x and later are not supported. For a local test server:

docker run -d --name influxdb -p 8086:8086 influxdb:1.8

Usage

ROS 2

docker run -d --name influxdb -p 8086:8086 influxdb:1.8
# joint states to store (or a robot / joint_state_publisher); start it first, as
# joint_states_logger.py exits when no message comes in a period of ~duration (3 s)
ros2 topic pub -r 10 /joint_states sensor_msgs/msg/JointState \
  '{header: {stamp: now}, name: [joint1], position: [0.5], velocity: [0.0], effort: [0.1]}'
# another terminal
ros2 run influxdb_store joint_states_logger.py --ros-args \
  -r '~/input:=/joint_states' -p host:=localhost -p port:=8086 -p database:=test
# the stored data
docker exec influxdb influx -database test -execute 'SELECT * FROM joint_states ORDER BY time DESC LIMIT 6'

influxdb_store demo

(In the recording, the container is named influxdb_demo, the output of ros2 topic pub is discarded with > /dev/null, and influx -precision rfc3339 prints the time as a date.)

ros2 run influxdb_store network_states_logger.py --ros-args \
  -r '~/input/transmit:=/wlan0/transmit' -r '~/input/receive:=/wlan0/receive' -p database:=test

ROS 1

launch/influxdb_logger.launch starts the joint states, map transform, base transform and network states loggers; host, port and database have no default and must be given:

roslaunch influxdb_store influxdb_logger.launch host:=localhost port:=8086 database:=test

Argument Default  
host, port, database (required) InfluxDB server and database
launch_joint_states_logger true Run joint_states_logger.py (required="true")
launch_map_transform_logger true Run map_transform_logger.py
launch_base_transform_logger true Run base_transform_logger.py
launch_network_states_logger true Run network_states_logger.py
joint_states_topic /joint_states Input of joint_states_logger.py
map_frame_id map ~frame_id of map_transform_logger.py
base_frame_id base_link ~frame_id of base_transform_logger.py
network_states_transmit_topic /<database>/wlan0/transmit Input of network_states_logger.py
network_states_receive_topic /<database>/wlan0/receive Input of network_states_logger.py

launch/pr2_battery_logger.launch and launch/fetch_battery_logger.launch (arguments host, port, database, battery_states_topic, all required) run the battery loggers.

Single nodes:

rosrun influxdb_store joint_states_logger.py ~input:=/joint_states _database:=test
rostopic pub -r 10 -s /joint_states sensor_msgs/JointState \
  '{header: {stamp: now}, name: [joint1], position: [0.5], velocity: [0.0], effort: [0.1]}'

For JSK robot users

The launch files in sample/ take robot_name (the database name, by default) and the topics of each robot (host defaults to localhost, port to 8086):

```bash rossetip rossetmaster pr1040 # or pr1012, fetch15, fetch1075, baxter roslaunch influxdb_store pr2_influxdb_logger.launch robot_name:=pr1040 # PR1012, PR1040 roslaunch influxdb_store fetch_influxdb_logger.launch robot_name:=fetch15 # Fetch15, Fetch1075

File truncated at 100 lines see the full file

CHANGELOG

Changelog for package influxdb_store

3.0.2 (2026-11-26)

  • Merge pull request #594 from k-okada/fix-error-handling
  • influxdb_store: pass a Loader to yaml.load in transform_logger transform_logger calls yaml.load() without Loader on the tf2 allFramesAsYAML() string. PyYAML 6 made Loader mandatory, so every call raised TypeError: _graph_cb() logged it and stored no frames, and __init_ retried until it gave up with sys.exit(1). Use yaml.SafeLoader. The data is a plain mapping of frame names to str/float fields, which SafeLoader parses identically to the old default Loader (PyYAML < 5.1, ROS 1 Python 2) and FullLoader (5.1 to 5.4, ROS 1 noetic); SafeLoader also exists in all those versions. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>> Claude-Session: https://claude.ai/code/session_01Xo6jRt2Rcht9sQS6ms6A4p
  • Merge pull request #595 from k-okada/readme-update Update the READMEs for ROS 1 / ROS 2, with badges and demos
  • influxdb_store: add a demo GIF to README.md A terminal recording on ROS 2 jazzy: InfluxDB 1.8 in Docker, /joint_states published, joint_states_logger.py storing them, and the stored points queried with influx. Note the differences of the recorded commands from the README (container name, > /dev/null, -precision). Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>> Claude-Session: https://claude.ai/code/session_01Xo6jRt2Rcht9sQS6ms6A4p
  • influxdb_store: update README.md for ROS 1 / ROS 2 Describe how to run it on ROS 2 and ROS 1, its interface (topics, services, actions, parameters) as in the source, and its requirements. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>> Claude-Session: https://claude.ai/code/session_01Xo6jRt2Rcht9sQS6ms6A4p
  • Merge pull request #584 from k-okada/release-3.0.1
  • Contributors: Kei Okada

3.0.1 (2026-11-10)

  • Merge pull request #583 from k-okada/rosdistro-55247-review rosdistro#55247 review: rename power_switching_tools_ros to jsk_power_switching_tools, fix licenses
  • use SPDX license identifiers (BSD-3-Clause, Apache-2.0) in package.xml BSD -> BSD-3-Clause and Apache / "Apache License, Version 2.0" -> Apache-2.0 in all packages (ros/rosdistro#55247 review). The LICENSE files of all of them are BSD 3-Clause and Apache 2.0 respectively. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>
  • Contributors: Kei Okada

3.0.0 (2026-11-06)

  • Merge pull request #581 from k-okada/ros2-buildfarm-ros-environment Fix ROS2 buildfarm binary jobs: ros_environment, bundled flac, numpy wheel

  • [voicevox, chaplus_ros, emotion_analyzer, gdrive_ros, google_chat_ros, influxdb_store, power_switching_tools_ros, respeaker_ros, ros_speech_recognition, rospatlite, sesame_ros, switchbot_ros] depend on ros_environment for ROS2 buildfarm The buildfarm builds each package with only its own build dependencies, so without ros_environment $ROS_VERSION is empty and CMakeLists.txt takes the ROS1 branch (same as jsk_common#1835). voicevox also guesses ROS_VERSION from AMENT_PREFIX_PATH when it is unset. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>

  • Merge branch 'master' into fix_hoya

  • Merge branch 'master' into voicevox-ros1-ros2

  • AMENT_IGNORE: do not add AMENT_IGNORE to packages already ported to ROS2 chaplus_ros, emotion_analyzer, gdrive_ros, google_chat_ros, influxdb_store, power_switching_tools_ros, respeaker_ros, rospatlite, sesame_ros and switchbot_ros are already ROS2 packages on master, so this PR must not AMENT_IGNORE them. Also remove ros_speech_recognition/AMENT_IGNORE, as this PR ports it to ROS2. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>

  • Merge branch 'master' into ros2-speech-recognition-only

  • Merge pull request #575 from k-okada/ros2-support Add ROS2 (jazzy) support to chaplus_ros, emotion_analyzer, gdrive_ros, google_chat_ros, influxdb_store, power_switching_tools_ros, respeaker_ros, rospatlite, sesame_ros, switchbot_ros

  • AMENT_IGNORE packages ported to ROS2 in jsk-ros-pkg/jsk_3rdparty#575 chaplus_ros, emotion_analyzer, gdrive_ros, google_chat_ros, influxdb_store, power_switching_tools_ros, rospatlite, sesame_ros and switchbot_ros are ROS1 only here, so the ROS2 CI skips them until #575. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>

  • [influxdb_store] add ROS2 support Single package.xml/CMakeLists.txt branched on $ROS_VERSION, same as chaplus_ros and jsk_common's ROS2-ported packages.

    - CMakeLists.txt: the ROS2 block is prepended and the ROS1 original

File truncated at 100 lines see the full file

Dependant Packages

No known dependants.

Launch files

  • launch/fetch_battery_logger.launch
      • host
      • port
      • database
      • battery_states_topic
  • launch/influxdb_logger.launch
      • host
      • port
      • database
      • launch_joint_states_logger [default: true]
      • launch_map_transform_logger [default: true]
      • launch_base_transform_logger [default: true]
      • launch_network_states_logger [default: true]
      • joint_states_topic [default: /joint_states]
      • map_frame_id [default: map]
      • base_frame_id [default: base_link]
      • network_states_transmit_topic [default: /$(arg database)/wlan0/transmit]
      • network_states_receive_topic [default: /$(arg database)/wlan0/receive]
  • launch/pr2_battery_logger.launch
      • host
      • port
      • database
      • battery_states_topic
  • sample/baxter_influxdb_logger.launch
      • host [default: localhost]
      • port [default: 8086]
      • robot_name [default: baxter]
      • database [default: $(arg robot_name)]
      • joint_states_topic [default: /robot/joint_states]
      • base_frame_id [default: base]
  • sample/fetch_influxdb_logger.launch
      • host [default: localhost]
      • port [default: 8086]
      • robot_name [default: fetch15]
      • database [default: $(arg robot_name)]
      • joint_states_topic [default: /joint_states]
      • battery_states_topic [default: /battery_state]
      • map_frame_id [default: map]
      • base_frame_id [default: base_link]
      • network_states_transmit_topic [default: /$(arg robot_name)/wlan0/transmit]
      • network_states_receive_topic [default: /$(arg robot_name)/wlan0/receive]
  • sample/pr2_influxdb_logger.launch
      • host [default: localhost]
      • port [default: 8086]
      • robot_name [default: pr1040]
      • database [default: $(arg robot_name)]
      • joint_states_topic [default: /joint_states]
      • battery_states_topic [default: /battery/server2]
      • map_frame_id [default: map]
      • base_frame_id [default: base_footprint]
      • network_states_transmit_topic [default: /$(arg robot_name)/wan0/transmit]
      • network_states_receive_topic [default: /$(arg robot_name)/wan0/receive]

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged influxdb_store at Robotics Stack Exchange

Package Summary

Version 3.0.2
License BSD-3-Clause
Build type CATKIN
Use RECOMMENDED

Repository Summary

Description
Checkout URI https://github.com/jsk-ros-pkg/jsk_3rdparty.git
VCS Type git
VCS Version master
Last Updated 2026-11-26
Dev Status DEVELOPED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Package Description

The influxdb_store package

Maintainers

  • Shingo Kitagawa

Authors

  • Shingo Kitagawa

influxdb_store

Loggers which store ROS topics and TF into InfluxDB (1.x), to be browsed with e.g. Grafana.

influxdb_grafana

Node ROS 1 ROS 2 What it stores
joint_states_logger.py ✓ ✓ sensor_msgs/JointState (position, velocity, effort)
network_states_logger.py ✓ ✓ Transmitted and received bps (std_msgs/Float32)
map_transform_logger.py ✓   All TF frames relative to map
base_transform_logger.py ✓   All TF frames relative to base_link
pr2_battery_states_logger.py ✓   PR2 batteries (pr2_msgs/BatteryServer2)
fetch_battery_states_logger.py ✓   Fetch battery (power_msgs/BatteryState)

The transform loggers use the tf2_frames service of the ROS 1 tf2_ros buffer server, and the battery loggers the messages of PR2 / Fetch, so they are on ROS 1 only. There are no ROS 2 launch files: run the nodes with ros2 run.

Requirements

An InfluxDB 1.x server (e.g. 1.8). The nodes use the 1.x Python client (python3-influxdb, InfluxDBClient) without authentication, and create the database (~database) if it does not exist; InfluxDB 2.x and later are not supported. For a local test server:

docker run -d --name influxdb -p 8086:8086 influxdb:1.8

Usage

ROS 2

docker run -d --name influxdb -p 8086:8086 influxdb:1.8
# joint states to store (or a robot / joint_state_publisher); start it first, as
# joint_states_logger.py exits when no message comes in a period of ~duration (3 s)
ros2 topic pub -r 10 /joint_states sensor_msgs/msg/JointState \
  '{header: {stamp: now}, name: [joint1], position: [0.5], velocity: [0.0], effort: [0.1]}'
# another terminal
ros2 run influxdb_store joint_states_logger.py --ros-args \
  -r '~/input:=/joint_states' -p host:=localhost -p port:=8086 -p database:=test
# the stored data
docker exec influxdb influx -database test -execute 'SELECT * FROM joint_states ORDER BY time DESC LIMIT 6'

influxdb_store demo

(In the recording, the container is named influxdb_demo, the output of ros2 topic pub is discarded with > /dev/null, and influx -precision rfc3339 prints the time as a date.)

ros2 run influxdb_store network_states_logger.py --ros-args \
  -r '~/input/transmit:=/wlan0/transmit' -r '~/input/receive:=/wlan0/receive' -p database:=test

ROS 1

launch/influxdb_logger.launch starts the joint states, map transform, base transform and network states loggers; host, port and database have no default and must be given:

roslaunch influxdb_store influxdb_logger.launch host:=localhost port:=8086 database:=test

Argument Default  
host, port, database (required) InfluxDB server and database
launch_joint_states_logger true Run joint_states_logger.py (required="true")
launch_map_transform_logger true Run map_transform_logger.py
launch_base_transform_logger true Run base_transform_logger.py
launch_network_states_logger true Run network_states_logger.py
joint_states_topic /joint_states Input of joint_states_logger.py
map_frame_id map ~frame_id of map_transform_logger.py
base_frame_id base_link ~frame_id of base_transform_logger.py
network_states_transmit_topic /<database>/wlan0/transmit Input of network_states_logger.py
network_states_receive_topic /<database>/wlan0/receive Input of network_states_logger.py

launch/pr2_battery_logger.launch and launch/fetch_battery_logger.launch (arguments host, port, database, battery_states_topic, all required) run the battery loggers.

Single nodes:

rosrun influxdb_store joint_states_logger.py ~input:=/joint_states _database:=test
rostopic pub -r 10 -s /joint_states sensor_msgs/JointState \
  '{header: {stamp: now}, name: [joint1], position: [0.5], velocity: [0.0], effort: [0.1]}'

For JSK robot users

The launch files in sample/ take robot_name (the database name, by default) and the topics of each robot (host defaults to localhost, port to 8086):

```bash rossetip rossetmaster pr1040 # or pr1012, fetch15, fetch1075, baxter roslaunch influxdb_store pr2_influxdb_logger.launch robot_name:=pr1040 # PR1012, PR1040 roslaunch influxdb_store fetch_influxdb_logger.launch robot_name:=fetch15 # Fetch15, Fetch1075

File truncated at 100 lines see the full file

CHANGELOG

Changelog for package influxdb_store

3.0.2 (2026-11-26)

  • Merge pull request #594 from k-okada/fix-error-handling
  • influxdb_store: pass a Loader to yaml.load in transform_logger transform_logger calls yaml.load() without Loader on the tf2 allFramesAsYAML() string. PyYAML 6 made Loader mandatory, so every call raised TypeError: _graph_cb() logged it and stored no frames, and __init_ retried until it gave up with sys.exit(1). Use yaml.SafeLoader. The data is a plain mapping of frame names to str/float fields, which SafeLoader parses identically to the old default Loader (PyYAML < 5.1, ROS 1 Python 2) and FullLoader (5.1 to 5.4, ROS 1 noetic); SafeLoader also exists in all those versions. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>> Claude-Session: https://claude.ai/code/session_01Xo6jRt2Rcht9sQS6ms6A4p
  • Merge pull request #595 from k-okada/readme-update Update the READMEs for ROS 1 / ROS 2, with badges and demos
  • influxdb_store: add a demo GIF to README.md A terminal recording on ROS 2 jazzy: InfluxDB 1.8 in Docker, /joint_states published, joint_states_logger.py storing them, and the stored points queried with influx. Note the differences of the recorded commands from the README (container name, > /dev/null, -precision). Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>> Claude-Session: https://claude.ai/code/session_01Xo6jRt2Rcht9sQS6ms6A4p
  • influxdb_store: update README.md for ROS 1 / ROS 2 Describe how to run it on ROS 2 and ROS 1, its interface (topics, services, actions, parameters) as in the source, and its requirements. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>> Claude-Session: https://claude.ai/code/session_01Xo6jRt2Rcht9sQS6ms6A4p
  • Merge pull request #584 from k-okada/release-3.0.1
  • Contributors: Kei Okada

3.0.1 (2026-11-10)

  • Merge pull request #583 from k-okada/rosdistro-55247-review rosdistro#55247 review: rename power_switching_tools_ros to jsk_power_switching_tools, fix licenses
  • use SPDX license identifiers (BSD-3-Clause, Apache-2.0) in package.xml BSD -> BSD-3-Clause and Apache / "Apache License, Version 2.0" -> Apache-2.0 in all packages (ros/rosdistro#55247 review). The LICENSE files of all of them are BSD 3-Clause and Apache 2.0 respectively. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>
  • Contributors: Kei Okada

3.0.0 (2026-11-06)

  • Merge pull request #581 from k-okada/ros2-buildfarm-ros-environment Fix ROS2 buildfarm binary jobs: ros_environment, bundled flac, numpy wheel

  • [voicevox, chaplus_ros, emotion_analyzer, gdrive_ros, google_chat_ros, influxdb_store, power_switching_tools_ros, respeaker_ros, ros_speech_recognition, rospatlite, sesame_ros, switchbot_ros] depend on ros_environment for ROS2 buildfarm The buildfarm builds each package with only its own build dependencies, so without ros_environment $ROS_VERSION is empty and CMakeLists.txt takes the ROS1 branch (same as jsk_common#1835). voicevox also guesses ROS_VERSION from AMENT_PREFIX_PATH when it is unset. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>

  • Merge branch 'master' into fix_hoya

  • Merge branch 'master' into voicevox-ros1-ros2

  • AMENT_IGNORE: do not add AMENT_IGNORE to packages already ported to ROS2 chaplus_ros, emotion_analyzer, gdrive_ros, google_chat_ros, influxdb_store, power_switching_tools_ros, respeaker_ros, rospatlite, sesame_ros and switchbot_ros are already ROS2 packages on master, so this PR must not AMENT_IGNORE them. Also remove ros_speech_recognition/AMENT_IGNORE, as this PR ports it to ROS2. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>

  • Merge branch 'master' into ros2-speech-recognition-only

  • Merge pull request #575 from k-okada/ros2-support Add ROS2 (jazzy) support to chaplus_ros, emotion_analyzer, gdrive_ros, google_chat_ros, influxdb_store, power_switching_tools_ros, respeaker_ros, rospatlite, sesame_ros, switchbot_ros

  • AMENT_IGNORE packages ported to ROS2 in jsk-ros-pkg/jsk_3rdparty#575 chaplus_ros, emotion_analyzer, gdrive_ros, google_chat_ros, influxdb_store, power_switching_tools_ros, rospatlite, sesame_ros and switchbot_ros are ROS1 only here, so the ROS2 CI skips them until #575. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>

  • [influxdb_store] add ROS2 support Single package.xml/CMakeLists.txt branched on $ROS_VERSION, same as chaplus_ros and jsk_common's ROS2-ported packages.

    - CMakeLists.txt: the ROS2 block is prepended and the ROS1 original

File truncated at 100 lines see the full file

Dependant Packages

No known dependants.

Launch files

  • launch/fetch_battery_logger.launch
      • host
      • port
      • database
      • battery_states_topic
  • launch/influxdb_logger.launch
      • host
      • port
      • database
      • launch_joint_states_logger [default: true]
      • launch_map_transform_logger [default: true]
      • launch_base_transform_logger [default: true]
      • launch_network_states_logger [default: true]
      • joint_states_topic [default: /joint_states]
      • map_frame_id [default: map]
      • base_frame_id [default: base_link]
      • network_states_transmit_topic [default: /$(arg database)/wlan0/transmit]
      • network_states_receive_topic [default: /$(arg database)/wlan0/receive]
  • launch/pr2_battery_logger.launch
      • host
      • port
      • database
      • battery_states_topic
  • sample/baxter_influxdb_logger.launch
      • host [default: localhost]
      • port [default: 8086]
      • robot_name [default: baxter]
      • database [default: $(arg robot_name)]
      • joint_states_topic [default: /robot/joint_states]
      • base_frame_id [default: base]
  • sample/fetch_influxdb_logger.launch
      • host [default: localhost]
      • port [default: 8086]
      • robot_name [default: fetch15]
      • database [default: $(arg robot_name)]
      • joint_states_topic [default: /joint_states]
      • battery_states_topic [default: /battery_state]
      • map_frame_id [default: map]
      • base_frame_id [default: base_link]
      • network_states_transmit_topic [default: /$(arg robot_name)/wlan0/transmit]
      • network_states_receive_topic [default: /$(arg robot_name)/wlan0/receive]
  • sample/pr2_influxdb_logger.launch
      • host [default: localhost]
      • port [default: 8086]
      • robot_name [default: pr1040]
      • database [default: $(arg robot_name)]
      • joint_states_topic [default: /joint_states]
      • battery_states_topic [default: /battery/server2]
      • map_frame_id [default: map]
      • base_frame_id [default: base_footprint]
      • network_states_transmit_topic [default: /$(arg robot_name)/wan0/transmit]
      • network_states_receive_topic [default: /$(arg robot_name)/wan0/receive]

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged influxdb_store at Robotics Stack Exchange

Package Summary

Version 3.0.2
License BSD-3-Clause
Build type CATKIN
Use RECOMMENDED

Repository Summary

Description
Checkout URI https://github.com/jsk-ros-pkg/jsk_3rdparty.git
VCS Type git
VCS Version master
Last Updated 2026-11-26
Dev Status DEVELOPED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Package Description

The influxdb_store package

Maintainers

  • Shingo Kitagawa

Authors

  • Shingo Kitagawa

influxdb_store

Loggers which store ROS topics and TF into InfluxDB (1.x), to be browsed with e.g. Grafana.

influxdb_grafana

Node ROS 1 ROS 2 What it stores
joint_states_logger.py ✓ ✓ sensor_msgs/JointState (position, velocity, effort)
network_states_logger.py ✓ ✓ Transmitted and received bps (std_msgs/Float32)
map_transform_logger.py ✓   All TF frames relative to map
base_transform_logger.py ✓   All TF frames relative to base_link
pr2_battery_states_logger.py ✓   PR2 batteries (pr2_msgs/BatteryServer2)
fetch_battery_states_logger.py ✓   Fetch battery (power_msgs/BatteryState)

The transform loggers use the tf2_frames service of the ROS 1 tf2_ros buffer server, and the battery loggers the messages of PR2 / Fetch, so they are on ROS 1 only. There are no ROS 2 launch files: run the nodes with ros2 run.

Requirements

An InfluxDB 1.x server (e.g. 1.8). The nodes use the 1.x Python client (python3-influxdb, InfluxDBClient) without authentication, and create the database (~database) if it does not exist; InfluxDB 2.x and later are not supported. For a local test server:

docker run -d --name influxdb -p 8086:8086 influxdb:1.8

Usage

ROS 2

docker run -d --name influxdb -p 8086:8086 influxdb:1.8
# joint states to store (or a robot / joint_state_publisher); start it first, as
# joint_states_logger.py exits when no message comes in a period of ~duration (3 s)
ros2 topic pub -r 10 /joint_states sensor_msgs/msg/JointState \
  '{header: {stamp: now}, name: [joint1], position: [0.5], velocity: [0.0], effort: [0.1]}'
# another terminal
ros2 run influxdb_store joint_states_logger.py --ros-args \
  -r '~/input:=/joint_states' -p host:=localhost -p port:=8086 -p database:=test
# the stored data
docker exec influxdb influx -database test -execute 'SELECT * FROM joint_states ORDER BY time DESC LIMIT 6'

influxdb_store demo

(In the recording, the container is named influxdb_demo, the output of ros2 topic pub is discarded with > /dev/null, and influx -precision rfc3339 prints the time as a date.)

ros2 run influxdb_store network_states_logger.py --ros-args \
  -r '~/input/transmit:=/wlan0/transmit' -r '~/input/receive:=/wlan0/receive' -p database:=test

ROS 1

launch/influxdb_logger.launch starts the joint states, map transform, base transform and network states loggers; host, port and database have no default and must be given:

roslaunch influxdb_store influxdb_logger.launch host:=localhost port:=8086 database:=test

Argument Default  
host, port, database (required) InfluxDB server and database
launch_joint_states_logger true Run joint_states_logger.py (required="true")
launch_map_transform_logger true Run map_transform_logger.py
launch_base_transform_logger true Run base_transform_logger.py
launch_network_states_logger true Run network_states_logger.py
joint_states_topic /joint_states Input of joint_states_logger.py
map_frame_id map ~frame_id of map_transform_logger.py
base_frame_id base_link ~frame_id of base_transform_logger.py
network_states_transmit_topic /<database>/wlan0/transmit Input of network_states_logger.py
network_states_receive_topic /<database>/wlan0/receive Input of network_states_logger.py

launch/pr2_battery_logger.launch and launch/fetch_battery_logger.launch (arguments host, port, database, battery_states_topic, all required) run the battery loggers.

Single nodes:

rosrun influxdb_store joint_states_logger.py ~input:=/joint_states _database:=test
rostopic pub -r 10 -s /joint_states sensor_msgs/JointState \
  '{header: {stamp: now}, name: [joint1], position: [0.5], velocity: [0.0], effort: [0.1]}'

For JSK robot users

The launch files in sample/ take robot_name (the database name, by default) and the topics of each robot (host defaults to localhost, port to 8086):

```bash rossetip rossetmaster pr1040 # or pr1012, fetch15, fetch1075, baxter roslaunch influxdb_store pr2_influxdb_logger.launch robot_name:=pr1040 # PR1012, PR1040 roslaunch influxdb_store fetch_influxdb_logger.launch robot_name:=fetch15 # Fetch15, Fetch1075

File truncated at 100 lines see the full file

CHANGELOG

Changelog for package influxdb_store

3.0.2 (2026-11-26)

  • Merge pull request #594 from k-okada/fix-error-handling
  • influxdb_store: pass a Loader to yaml.load in transform_logger transform_logger calls yaml.load() without Loader on the tf2 allFramesAsYAML() string. PyYAML 6 made Loader mandatory, so every call raised TypeError: _graph_cb() logged it and stored no frames, and __init_ retried until it gave up with sys.exit(1). Use yaml.SafeLoader. The data is a plain mapping of frame names to str/float fields, which SafeLoader parses identically to the old default Loader (PyYAML < 5.1, ROS 1 Python 2) and FullLoader (5.1 to 5.4, ROS 1 noetic); SafeLoader also exists in all those versions. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>> Claude-Session: https://claude.ai/code/session_01Xo6jRt2Rcht9sQS6ms6A4p
  • Merge pull request #595 from k-okada/readme-update Update the READMEs for ROS 1 / ROS 2, with badges and demos
  • influxdb_store: add a demo GIF to README.md A terminal recording on ROS 2 jazzy: InfluxDB 1.8 in Docker, /joint_states published, joint_states_logger.py storing them, and the stored points queried with influx. Note the differences of the recorded commands from the README (container name, > /dev/null, -precision). Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>> Claude-Session: https://claude.ai/code/session_01Xo6jRt2Rcht9sQS6ms6A4p
  • influxdb_store: update README.md for ROS 1 / ROS 2 Describe how to run it on ROS 2 and ROS 1, its interface (topics, services, actions, parameters) as in the source, and its requirements. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>> Claude-Session: https://claude.ai/code/session_01Xo6jRt2Rcht9sQS6ms6A4p
  • Merge pull request #584 from k-okada/release-3.0.1
  • Contributors: Kei Okada

3.0.1 (2026-11-10)

  • Merge pull request #583 from k-okada/rosdistro-55247-review rosdistro#55247 review: rename power_switching_tools_ros to jsk_power_switching_tools, fix licenses
  • use SPDX license identifiers (BSD-3-Clause, Apache-2.0) in package.xml BSD -> BSD-3-Clause and Apache / "Apache License, Version 2.0" -> Apache-2.0 in all packages (ros/rosdistro#55247 review). The LICENSE files of all of them are BSD 3-Clause and Apache 2.0 respectively. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>
  • Contributors: Kei Okada

3.0.0 (2026-11-06)

  • Merge pull request #581 from k-okada/ros2-buildfarm-ros-environment Fix ROS2 buildfarm binary jobs: ros_environment, bundled flac, numpy wheel

  • [voicevox, chaplus_ros, emotion_analyzer, gdrive_ros, google_chat_ros, influxdb_store, power_switching_tools_ros, respeaker_ros, ros_speech_recognition, rospatlite, sesame_ros, switchbot_ros] depend on ros_environment for ROS2 buildfarm The buildfarm builds each package with only its own build dependencies, so without ros_environment $ROS_VERSION is empty and CMakeLists.txt takes the ROS1 branch (same as jsk_common#1835). voicevox also guesses ROS_VERSION from AMENT_PREFIX_PATH when it is unset. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>

  • Merge branch 'master' into fix_hoya

  • Merge branch 'master' into voicevox-ros1-ros2

  • AMENT_IGNORE: do not add AMENT_IGNORE to packages already ported to ROS2 chaplus_ros, emotion_analyzer, gdrive_ros, google_chat_ros, influxdb_store, power_switching_tools_ros, respeaker_ros, rospatlite, sesame_ros and switchbot_ros are already ROS2 packages on master, so this PR must not AMENT_IGNORE them. Also remove ros_speech_recognition/AMENT_IGNORE, as this PR ports it to ROS2. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>

  • Merge branch 'master' into ros2-speech-recognition-only

  • Merge pull request #575 from k-okada/ros2-support Add ROS2 (jazzy) support to chaplus_ros, emotion_analyzer, gdrive_ros, google_chat_ros, influxdb_store, power_switching_tools_ros, respeaker_ros, rospatlite, sesame_ros, switchbot_ros

  • AMENT_IGNORE packages ported to ROS2 in jsk-ros-pkg/jsk_3rdparty#575 chaplus_ros, emotion_analyzer, gdrive_ros, google_chat_ros, influxdb_store, power_switching_tools_ros, rospatlite, sesame_ros and switchbot_ros are ROS1 only here, so the ROS2 CI skips them until #575. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>

  • [influxdb_store] add ROS2 support Single package.xml/CMakeLists.txt branched on $ROS_VERSION, same as chaplus_ros and jsk_common's ROS2-ported packages.

    - CMakeLists.txt: the ROS2 block is prepended and the ROS1 original

File truncated at 100 lines see the full file

Dependant Packages

No known dependants.

Launch files

  • launch/fetch_battery_logger.launch
      • host
      • port
      • database
      • battery_states_topic
  • launch/influxdb_logger.launch
      • host
      • port
      • database
      • launch_joint_states_logger [default: true]
      • launch_map_transform_logger [default: true]
      • launch_base_transform_logger [default: true]
      • launch_network_states_logger [default: true]
      • joint_states_topic [default: /joint_states]
      • map_frame_id [default: map]
      • base_frame_id [default: base_link]
      • network_states_transmit_topic [default: /$(arg database)/wlan0/transmit]
      • network_states_receive_topic [default: /$(arg database)/wlan0/receive]
  • launch/pr2_battery_logger.launch
      • host
      • port
      • database
      • battery_states_topic
  • sample/baxter_influxdb_logger.launch
      • host [default: localhost]
      • port [default: 8086]
      • robot_name [default: baxter]
      • database [default: $(arg robot_name)]
      • joint_states_topic [default: /robot/joint_states]
      • base_frame_id [default: base]
  • sample/fetch_influxdb_logger.launch
      • host [default: localhost]
      • port [default: 8086]
      • robot_name [default: fetch15]
      • database [default: $(arg robot_name)]
      • joint_states_topic [default: /joint_states]
      • battery_states_topic [default: /battery_state]
      • map_frame_id [default: map]
      • base_frame_id [default: base_link]
      • network_states_transmit_topic [default: /$(arg robot_name)/wlan0/transmit]
      • network_states_receive_topic [default: /$(arg robot_name)/wlan0/receive]
  • sample/pr2_influxdb_logger.launch
      • host [default: localhost]
      • port [default: 8086]
      • robot_name [default: pr1040]
      • database [default: $(arg robot_name)]
      • joint_states_topic [default: /joint_states]
      • battery_states_topic [default: /battery/server2]
      • map_frame_id [default: map]
      • base_frame_id [default: base_footprint]
      • network_states_transmit_topic [default: /$(arg robot_name)/wan0/transmit]
      • network_states_receive_topic [default: /$(arg robot_name)/wan0/receive]

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged influxdb_store at Robotics Stack Exchange

Package Summary

Version 3.0.2
License BSD-3-Clause
Build type CATKIN
Use RECOMMENDED

Repository Summary

Description
Checkout URI https://github.com/jsk-ros-pkg/jsk_3rdparty.git
VCS Type git
VCS Version master
Last Updated 2026-11-26
Dev Status DEVELOPED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Package Description

The influxdb_store package

Maintainers

  • Shingo Kitagawa

Authors

  • Shingo Kitagawa

influxdb_store

Loggers which store ROS topics and TF into InfluxDB (1.x), to be browsed with e.g. Grafana.

influxdb_grafana

Node ROS 1 ROS 2 What it stores
joint_states_logger.py ✓ ✓ sensor_msgs/JointState (position, velocity, effort)
network_states_logger.py ✓ ✓ Transmitted and received bps (std_msgs/Float32)
map_transform_logger.py ✓   All TF frames relative to map
base_transform_logger.py ✓   All TF frames relative to base_link
pr2_battery_states_logger.py ✓   PR2 batteries (pr2_msgs/BatteryServer2)
fetch_battery_states_logger.py ✓   Fetch battery (power_msgs/BatteryState)

The transform loggers use the tf2_frames service of the ROS 1 tf2_ros buffer server, and the battery loggers the messages of PR2 / Fetch, so they are on ROS 1 only. There are no ROS 2 launch files: run the nodes with ros2 run.

Requirements

An InfluxDB 1.x server (e.g. 1.8). The nodes use the 1.x Python client (python3-influxdb, InfluxDBClient) without authentication, and create the database (~database) if it does not exist; InfluxDB 2.x and later are not supported. For a local test server:

docker run -d --name influxdb -p 8086:8086 influxdb:1.8

Usage

ROS 2

docker run -d --name influxdb -p 8086:8086 influxdb:1.8
# joint states to store (or a robot / joint_state_publisher); start it first, as
# joint_states_logger.py exits when no message comes in a period of ~duration (3 s)
ros2 topic pub -r 10 /joint_states sensor_msgs/msg/JointState \
  '{header: {stamp: now}, name: [joint1], position: [0.5], velocity: [0.0], effort: [0.1]}'
# another terminal
ros2 run influxdb_store joint_states_logger.py --ros-args \
  -r '~/input:=/joint_states' -p host:=localhost -p port:=8086 -p database:=test
# the stored data
docker exec influxdb influx -database test -execute 'SELECT * FROM joint_states ORDER BY time DESC LIMIT 6'

influxdb_store demo

(In the recording, the container is named influxdb_demo, the output of ros2 topic pub is discarded with > /dev/null, and influx -precision rfc3339 prints the time as a date.)

ros2 run influxdb_store network_states_logger.py --ros-args \
  -r '~/input/transmit:=/wlan0/transmit' -r '~/input/receive:=/wlan0/receive' -p database:=test

ROS 1

launch/influxdb_logger.launch starts the joint states, map transform, base transform and network states loggers; host, port and database have no default and must be given:

roslaunch influxdb_store influxdb_logger.launch host:=localhost port:=8086 database:=test

Argument Default  
host, port, database (required) InfluxDB server and database
launch_joint_states_logger true Run joint_states_logger.py (required="true")
launch_map_transform_logger true Run map_transform_logger.py
launch_base_transform_logger true Run base_transform_logger.py
launch_network_states_logger true Run network_states_logger.py
joint_states_topic /joint_states Input of joint_states_logger.py
map_frame_id map ~frame_id of map_transform_logger.py
base_frame_id base_link ~frame_id of base_transform_logger.py
network_states_transmit_topic /<database>/wlan0/transmit Input of network_states_logger.py
network_states_receive_topic /<database>/wlan0/receive Input of network_states_logger.py

launch/pr2_battery_logger.launch and launch/fetch_battery_logger.launch (arguments host, port, database, battery_states_topic, all required) run the battery loggers.

Single nodes:

rosrun influxdb_store joint_states_logger.py ~input:=/joint_states _database:=test
rostopic pub -r 10 -s /joint_states sensor_msgs/JointState \
  '{header: {stamp: now}, name: [joint1], position: [0.5], velocity: [0.0], effort: [0.1]}'

For JSK robot users

The launch files in sample/ take robot_name (the database name, by default) and the topics of each robot (host defaults to localhost, port to 8086):

```bash rossetip rossetmaster pr1040 # or pr1012, fetch15, fetch1075, baxter roslaunch influxdb_store pr2_influxdb_logger.launch robot_name:=pr1040 # PR1012, PR1040 roslaunch influxdb_store fetch_influxdb_logger.launch robot_name:=fetch15 # Fetch15, Fetch1075

File truncated at 100 lines see the full file

CHANGELOG

Changelog for package influxdb_store

3.0.2 (2026-11-26)

  • Merge pull request #594 from k-okada/fix-error-handling
  • influxdb_store: pass a Loader to yaml.load in transform_logger transform_logger calls yaml.load() without Loader on the tf2 allFramesAsYAML() string. PyYAML 6 made Loader mandatory, so every call raised TypeError: _graph_cb() logged it and stored no frames, and __init_ retried until it gave up with sys.exit(1). Use yaml.SafeLoader. The data is a plain mapping of frame names to str/float fields, which SafeLoader parses identically to the old default Loader (PyYAML < 5.1, ROS 1 Python 2) and FullLoader (5.1 to 5.4, ROS 1 noetic); SafeLoader also exists in all those versions. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>> Claude-Session: https://claude.ai/code/session_01Xo6jRt2Rcht9sQS6ms6A4p
  • Merge pull request #595 from k-okada/readme-update Update the READMEs for ROS 1 / ROS 2, with badges and demos
  • influxdb_store: add a demo GIF to README.md A terminal recording on ROS 2 jazzy: InfluxDB 1.8 in Docker, /joint_states published, joint_states_logger.py storing them, and the stored points queried with influx. Note the differences of the recorded commands from the README (container name, > /dev/null, -precision). Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>> Claude-Session: https://claude.ai/code/session_01Xo6jRt2Rcht9sQS6ms6A4p
  • influxdb_store: update README.md for ROS 1 / ROS 2 Describe how to run it on ROS 2 and ROS 1, its interface (topics, services, actions, parameters) as in the source, and its requirements. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>> Claude-Session: https://claude.ai/code/session_01Xo6jRt2Rcht9sQS6ms6A4p
  • Merge pull request #584 from k-okada/release-3.0.1
  • Contributors: Kei Okada

3.0.1 (2026-11-10)

  • Merge pull request #583 from k-okada/rosdistro-55247-review rosdistro#55247 review: rename power_switching_tools_ros to jsk_power_switching_tools, fix licenses
  • use SPDX license identifiers (BSD-3-Clause, Apache-2.0) in package.xml BSD -> BSD-3-Clause and Apache / "Apache License, Version 2.0" -> Apache-2.0 in all packages (ros/rosdistro#55247 review). The LICENSE files of all of them are BSD 3-Clause and Apache 2.0 respectively. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>
  • Contributors: Kei Okada

3.0.0 (2026-11-06)

  • Merge pull request #581 from k-okada/ros2-buildfarm-ros-environment Fix ROS2 buildfarm binary jobs: ros_environment, bundled flac, numpy wheel

  • [voicevox, chaplus_ros, emotion_analyzer, gdrive_ros, google_chat_ros, influxdb_store, power_switching_tools_ros, respeaker_ros, ros_speech_recognition, rospatlite, sesame_ros, switchbot_ros] depend on ros_environment for ROS2 buildfarm The buildfarm builds each package with only its own build dependencies, so without ros_environment $ROS_VERSION is empty and CMakeLists.txt takes the ROS1 branch (same as jsk_common#1835). voicevox also guesses ROS_VERSION from AMENT_PREFIX_PATH when it is unset. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>

  • Merge branch 'master' into fix_hoya

  • Merge branch 'master' into voicevox-ros1-ros2

  • AMENT_IGNORE: do not add AMENT_IGNORE to packages already ported to ROS2 chaplus_ros, emotion_analyzer, gdrive_ros, google_chat_ros, influxdb_store, power_switching_tools_ros, respeaker_ros, rospatlite, sesame_ros and switchbot_ros are already ROS2 packages on master, so this PR must not AMENT_IGNORE them. Also remove ros_speech_recognition/AMENT_IGNORE, as this PR ports it to ROS2. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>

  • Merge branch 'master' into ros2-speech-recognition-only

  • Merge pull request #575 from k-okada/ros2-support Add ROS2 (jazzy) support to chaplus_ros, emotion_analyzer, gdrive_ros, google_chat_ros, influxdb_store, power_switching_tools_ros, respeaker_ros, rospatlite, sesame_ros, switchbot_ros

  • AMENT_IGNORE packages ported to ROS2 in jsk-ros-pkg/jsk_3rdparty#575 chaplus_ros, emotion_analyzer, gdrive_ros, google_chat_ros, influxdb_store, power_switching_tools_ros, rospatlite, sesame_ros and switchbot_ros are ROS1 only here, so the ROS2 CI skips them until #575. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>

  • [influxdb_store] add ROS2 support Single package.xml/CMakeLists.txt branched on $ROS_VERSION, same as chaplus_ros and jsk_common's ROS2-ported packages.

    - CMakeLists.txt: the ROS2 block is prepended and the ROS1 original

File truncated at 100 lines see the full file

Dependant Packages

No known dependants.

Launch files

  • launch/fetch_battery_logger.launch
      • host
      • port
      • database
      • battery_states_topic
  • launch/influxdb_logger.launch
      • host
      • port
      • database
      • launch_joint_states_logger [default: true]
      • launch_map_transform_logger [default: true]
      • launch_base_transform_logger [default: true]
      • launch_network_states_logger [default: true]
      • joint_states_topic [default: /joint_states]
      • map_frame_id [default: map]
      • base_frame_id [default: base_link]
      • network_states_transmit_topic [default: /$(arg database)/wlan0/transmit]
      • network_states_receive_topic [default: /$(arg database)/wlan0/receive]
  • launch/pr2_battery_logger.launch
      • host
      • port
      • database
      • battery_states_topic
  • sample/baxter_influxdb_logger.launch
      • host [default: localhost]
      • port [default: 8086]
      • robot_name [default: baxter]
      • database [default: $(arg robot_name)]
      • joint_states_topic [default: /robot/joint_states]
      • base_frame_id [default: base]
  • sample/fetch_influxdb_logger.launch
      • host [default: localhost]
      • port [default: 8086]
      • robot_name [default: fetch15]
      • database [default: $(arg robot_name)]
      • joint_states_topic [default: /joint_states]
      • battery_states_topic [default: /battery_state]
      • map_frame_id [default: map]
      • base_frame_id [default: base_link]
      • network_states_transmit_topic [default: /$(arg robot_name)/wlan0/transmit]
      • network_states_receive_topic [default: /$(arg robot_name)/wlan0/receive]
  • sample/pr2_influxdb_logger.launch
      • host [default: localhost]
      • port [default: 8086]
      • robot_name [default: pr1040]
      • database [default: $(arg robot_name)]
      • joint_states_topic [default: /joint_states]
      • battery_states_topic [default: /battery/server2]
      • map_frame_id [default: map]
      • base_frame_id [default: base_footprint]
      • network_states_transmit_topic [default: /$(arg robot_name)/wan0/transmit]
      • network_states_receive_topic [default: /$(arg robot_name)/wan0/receive]

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged influxdb_store at Robotics Stack Exchange

No version for distro rolling showing jazzy. Known supported distros are highlighted in the buttons above.

Package Summary

Version 3.0.2
License BSD-3-Clause
Build type CATKIN
Use RECOMMENDED

Repository Summary

Description
Checkout URI https://github.com/jsk-ros-pkg/jsk_3rdparty.git
VCS Type git
VCS Version master
Last Updated 2026-11-26
Dev Status DEVELOPED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Package Description

The influxdb_store package

Maintainers

  • Shingo Kitagawa

Authors

  • Shingo Kitagawa

influxdb_store

Loggers which store ROS topics and TF into InfluxDB (1.x), to be browsed with e.g. Grafana.

influxdb_grafana

Node ROS 1 ROS 2 What it stores
joint_states_logger.py ✓ ✓ sensor_msgs/JointState (position, velocity, effort)
network_states_logger.py ✓ ✓ Transmitted and received bps (std_msgs/Float32)
map_transform_logger.py ✓   All TF frames relative to map
base_transform_logger.py ✓   All TF frames relative to base_link
pr2_battery_states_logger.py ✓   PR2 batteries (pr2_msgs/BatteryServer2)
fetch_battery_states_logger.py ✓   Fetch battery (power_msgs/BatteryState)

The transform loggers use the tf2_frames service of the ROS 1 tf2_ros buffer server, and the battery loggers the messages of PR2 / Fetch, so they are on ROS 1 only. There are no ROS 2 launch files: run the nodes with ros2 run.

Requirements

An InfluxDB 1.x server (e.g. 1.8). The nodes use the 1.x Python client (python3-influxdb, InfluxDBClient) without authentication, and create the database (~database) if it does not exist; InfluxDB 2.x and later are not supported. For a local test server:

docker run -d --name influxdb -p 8086:8086 influxdb:1.8

Usage

ROS 2

docker run -d --name influxdb -p 8086:8086 influxdb:1.8
# joint states to store (or a robot / joint_state_publisher); start it first, as
# joint_states_logger.py exits when no message comes in a period of ~duration (3 s)
ros2 topic pub -r 10 /joint_states sensor_msgs/msg/JointState \
  '{header: {stamp: now}, name: [joint1], position: [0.5], velocity: [0.0], effort: [0.1]}'
# another terminal
ros2 run influxdb_store joint_states_logger.py --ros-args \
  -r '~/input:=/joint_states' -p host:=localhost -p port:=8086 -p database:=test
# the stored data
docker exec influxdb influx -database test -execute 'SELECT * FROM joint_states ORDER BY time DESC LIMIT 6'

influxdb_store demo

(In the recording, the container is named influxdb_demo, the output of ros2 topic pub is discarded with > /dev/null, and influx -precision rfc3339 prints the time as a date.)

ros2 run influxdb_store network_states_logger.py --ros-args \
  -r '~/input/transmit:=/wlan0/transmit' -r '~/input/receive:=/wlan0/receive' -p database:=test

ROS 1

launch/influxdb_logger.launch starts the joint states, map transform, base transform and network states loggers; host, port and database have no default and must be given:

roslaunch influxdb_store influxdb_logger.launch host:=localhost port:=8086 database:=test

Argument Default  
host, port, database (required) InfluxDB server and database
launch_joint_states_logger true Run joint_states_logger.py (required="true")
launch_map_transform_logger true Run map_transform_logger.py
launch_base_transform_logger true Run base_transform_logger.py
launch_network_states_logger true Run network_states_logger.py
joint_states_topic /joint_states Input of joint_states_logger.py
map_frame_id map ~frame_id of map_transform_logger.py
base_frame_id base_link ~frame_id of base_transform_logger.py
network_states_transmit_topic /<database>/wlan0/transmit Input of network_states_logger.py
network_states_receive_topic /<database>/wlan0/receive Input of network_states_logger.py

launch/pr2_battery_logger.launch and launch/fetch_battery_logger.launch (arguments host, port, database, battery_states_topic, all required) run the battery loggers.

Single nodes:

rosrun influxdb_store joint_states_logger.py ~input:=/joint_states _database:=test
rostopic pub -r 10 -s /joint_states sensor_msgs/JointState \
  '{header: {stamp: now}, name: [joint1], position: [0.5], velocity: [0.0], effort: [0.1]}'

For JSK robot users

The launch files in sample/ take robot_name (the database name, by default) and the topics of each robot (host defaults to localhost, port to 8086):

```bash rossetip rossetmaster pr1040 # or pr1012, fetch15, fetch1075, baxter roslaunch influxdb_store pr2_influxdb_logger.launch robot_name:=pr1040 # PR1012, PR1040 roslaunch influxdb_store fetch_influxdb_logger.launch robot_name:=fetch15 # Fetch15, Fetch1075

File truncated at 100 lines see the full file

CHANGELOG

Changelog for package influxdb_store

3.0.2 (2026-11-26)

  • Merge pull request #594 from k-okada/fix-error-handling
  • influxdb_store: pass a Loader to yaml.load in transform_logger transform_logger calls yaml.load() without Loader on the tf2 allFramesAsYAML() string. PyYAML 6 made Loader mandatory, so every call raised TypeError: _graph_cb() logged it and stored no frames, and __init_ retried until it gave up with sys.exit(1). Use yaml.SafeLoader. The data is a plain mapping of frame names to str/float fields, which SafeLoader parses identically to the old default Loader (PyYAML < 5.1, ROS 1 Python 2) and FullLoader (5.1 to 5.4, ROS 1 noetic); SafeLoader also exists in all those versions. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>> Claude-Session: https://claude.ai/code/session_01Xo6jRt2Rcht9sQS6ms6A4p
  • Merge pull request #595 from k-okada/readme-update Update the READMEs for ROS 1 / ROS 2, with badges and demos
  • influxdb_store: add a demo GIF to README.md A terminal recording on ROS 2 jazzy: InfluxDB 1.8 in Docker, /joint_states published, joint_states_logger.py storing them, and the stored points queried with influx. Note the differences of the recorded commands from the README (container name, > /dev/null, -precision). Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>> Claude-Session: https://claude.ai/code/session_01Xo6jRt2Rcht9sQS6ms6A4p
  • influxdb_store: update README.md for ROS 1 / ROS 2 Describe how to run it on ROS 2 and ROS 1, its interface (topics, services, actions, parameters) as in the source, and its requirements. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>> Claude-Session: https://claude.ai/code/session_01Xo6jRt2Rcht9sQS6ms6A4p
  • Merge pull request #584 from k-okada/release-3.0.1
  • Contributors: Kei Okada

3.0.1 (2026-11-10)

  • Merge pull request #583 from k-okada/rosdistro-55247-review rosdistro#55247 review: rename power_switching_tools_ros to jsk_power_switching_tools, fix licenses
  • use SPDX license identifiers (BSD-3-Clause, Apache-2.0) in package.xml BSD -> BSD-3-Clause and Apache / "Apache License, Version 2.0" -> Apache-2.0 in all packages (ros/rosdistro#55247 review). The LICENSE files of all of them are BSD 3-Clause and Apache 2.0 respectively. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>
  • Contributors: Kei Okada

3.0.0 (2026-11-06)

  • Merge pull request #581 from k-okada/ros2-buildfarm-ros-environment Fix ROS2 buildfarm binary jobs: ros_environment, bundled flac, numpy wheel

  • [voicevox, chaplus_ros, emotion_analyzer, gdrive_ros, google_chat_ros, influxdb_store, power_switching_tools_ros, respeaker_ros, ros_speech_recognition, rospatlite, sesame_ros, switchbot_ros] depend on ros_environment for ROS2 buildfarm The buildfarm builds each package with only its own build dependencies, so without ros_environment $ROS_VERSION is empty and CMakeLists.txt takes the ROS1 branch (same as jsk_common#1835). voicevox also guesses ROS_VERSION from AMENT_PREFIX_PATH when it is unset. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>

  • Merge branch 'master' into fix_hoya

  • Merge branch 'master' into voicevox-ros1-ros2

  • AMENT_IGNORE: do not add AMENT_IGNORE to packages already ported to ROS2 chaplus_ros, emotion_analyzer, gdrive_ros, google_chat_ros, influxdb_store, power_switching_tools_ros, respeaker_ros, rospatlite, sesame_ros and switchbot_ros are already ROS2 packages on master, so this PR must not AMENT_IGNORE them. Also remove ros_speech_recognition/AMENT_IGNORE, as this PR ports it to ROS2. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>

  • Merge branch 'master' into ros2-speech-recognition-only

  • Merge pull request #575 from k-okada/ros2-support Add ROS2 (jazzy) support to chaplus_ros, emotion_analyzer, gdrive_ros, google_chat_ros, influxdb_store, power_switching_tools_ros, respeaker_ros, rospatlite, sesame_ros, switchbot_ros

  • AMENT_IGNORE packages ported to ROS2 in jsk-ros-pkg/jsk_3rdparty#575 chaplus_ros, emotion_analyzer, gdrive_ros, google_chat_ros, influxdb_store, power_switching_tools_ros, rospatlite, sesame_ros and switchbot_ros are ROS1 only here, so the ROS2 CI skips them until #575. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>

  • [influxdb_store] add ROS2 support Single package.xml/CMakeLists.txt branched on $ROS_VERSION, same as chaplus_ros and jsk_common's ROS2-ported packages.

    - CMakeLists.txt: the ROS2 block is prepended and the ROS1 original

File truncated at 100 lines see the full file

Dependant Packages

No known dependants.

Launch files

  • launch/fetch_battery_logger.launch
      • host
      • port
      • database
      • battery_states_topic
  • launch/influxdb_logger.launch
      • host
      • port
      • database
      • launch_joint_states_logger [default: true]
      • launch_map_transform_logger [default: true]
      • launch_base_transform_logger [default: true]
      • launch_network_states_logger [default: true]
      • joint_states_topic [default: /joint_states]
      • map_frame_id [default: map]
      • base_frame_id [default: base_link]
      • network_states_transmit_topic [default: /$(arg database)/wlan0/transmit]
      • network_states_receive_topic [default: /$(arg database)/wlan0/receive]
  • launch/pr2_battery_logger.launch
      • host
      • port
      • database
      • battery_states_topic
  • sample/baxter_influxdb_logger.launch
      • host [default: localhost]
      • port [default: 8086]
      • robot_name [default: baxter]
      • database [default: $(arg robot_name)]
      • joint_states_topic [default: /robot/joint_states]
      • base_frame_id [default: base]
  • sample/fetch_influxdb_logger.launch
      • host [default: localhost]
      • port [default: 8086]
      • robot_name [default: fetch15]
      • database [default: $(arg robot_name)]
      • joint_states_topic [default: /joint_states]
      • battery_states_topic [default: /battery_state]
      • map_frame_id [default: map]
      • base_frame_id [default: base_link]
      • network_states_transmit_topic [default: /$(arg robot_name)/wlan0/transmit]
      • network_states_receive_topic [default: /$(arg robot_name)/wlan0/receive]
  • sample/pr2_influxdb_logger.launch
      • host [default: localhost]
      • port [default: 8086]
      • robot_name [default: pr1040]
      • database [default: $(arg robot_name)]
      • joint_states_topic [default: /joint_states]
      • battery_states_topic [default: /battery/server2]
      • map_frame_id [default: map]
      • base_frame_id [default: base_footprint]
      • network_states_transmit_topic [default: /$(arg robot_name)/wan0/transmit]
      • network_states_receive_topic [default: /$(arg robot_name)/wan0/receive]

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged influxdb_store at Robotics Stack Exchange

No version for distro github showing jazzy. Known supported distros are highlighted in the buttons above.

Package Summary

Version 3.0.2
License BSD-3-Clause
Build type CATKIN
Use RECOMMENDED

Repository Summary

Description
Checkout URI https://github.com/jsk-ros-pkg/jsk_3rdparty.git
VCS Type git
VCS Version master
Last Updated 2026-11-26
Dev Status DEVELOPED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Package Description

The influxdb_store package

Maintainers

  • Shingo Kitagawa

Authors

  • Shingo Kitagawa

influxdb_store

Loggers which store ROS topics and TF into InfluxDB (1.x), to be browsed with e.g. Grafana.

influxdb_grafana

Node ROS 1 ROS 2 What it stores
joint_states_logger.py ✓ ✓ sensor_msgs/JointState (position, velocity, effort)
network_states_logger.py ✓ ✓ Transmitted and received bps (std_msgs/Float32)
map_transform_logger.py ✓   All TF frames relative to map
base_transform_logger.py ✓   All TF frames relative to base_link
pr2_battery_states_logger.py ✓   PR2 batteries (pr2_msgs/BatteryServer2)
fetch_battery_states_logger.py ✓   Fetch battery (power_msgs/BatteryState)

The transform loggers use the tf2_frames service of the ROS 1 tf2_ros buffer server, and the battery loggers the messages of PR2 / Fetch, so they are on ROS 1 only. There are no ROS 2 launch files: run the nodes with ros2 run.

Requirements

An InfluxDB 1.x server (e.g. 1.8). The nodes use the 1.x Python client (python3-influxdb, InfluxDBClient) without authentication, and create the database (~database) if it does not exist; InfluxDB 2.x and later are not supported. For a local test server:

docker run -d --name influxdb -p 8086:8086 influxdb:1.8

Usage

ROS 2

docker run -d --name influxdb -p 8086:8086 influxdb:1.8
# joint states to store (or a robot / joint_state_publisher); start it first, as
# joint_states_logger.py exits when no message comes in a period of ~duration (3 s)
ros2 topic pub -r 10 /joint_states sensor_msgs/msg/JointState \
  '{header: {stamp: now}, name: [joint1], position: [0.5], velocity: [0.0], effort: [0.1]}'
# another terminal
ros2 run influxdb_store joint_states_logger.py --ros-args \
  -r '~/input:=/joint_states' -p host:=localhost -p port:=8086 -p database:=test
# the stored data
docker exec influxdb influx -database test -execute 'SELECT * FROM joint_states ORDER BY time DESC LIMIT 6'

influxdb_store demo

(In the recording, the container is named influxdb_demo, the output of ros2 topic pub is discarded with > /dev/null, and influx -precision rfc3339 prints the time as a date.)

ros2 run influxdb_store network_states_logger.py --ros-args \
  -r '~/input/transmit:=/wlan0/transmit' -r '~/input/receive:=/wlan0/receive' -p database:=test

ROS 1

launch/influxdb_logger.launch starts the joint states, map transform, base transform and network states loggers; host, port and database have no default and must be given:

roslaunch influxdb_store influxdb_logger.launch host:=localhost port:=8086 database:=test

Argument Default  
host, port, database (required) InfluxDB server and database
launch_joint_states_logger true Run joint_states_logger.py (required="true")
launch_map_transform_logger true Run map_transform_logger.py
launch_base_transform_logger true Run base_transform_logger.py
launch_network_states_logger true Run network_states_logger.py
joint_states_topic /joint_states Input of joint_states_logger.py
map_frame_id map ~frame_id of map_transform_logger.py
base_frame_id base_link ~frame_id of base_transform_logger.py
network_states_transmit_topic /<database>/wlan0/transmit Input of network_states_logger.py
network_states_receive_topic /<database>/wlan0/receive Input of network_states_logger.py

launch/pr2_battery_logger.launch and launch/fetch_battery_logger.launch (arguments host, port, database, battery_states_topic, all required) run the battery loggers.

Single nodes:

rosrun influxdb_store joint_states_logger.py ~input:=/joint_states _database:=test
rostopic pub -r 10 -s /joint_states sensor_msgs/JointState \
  '{header: {stamp: now}, name: [joint1], position: [0.5], velocity: [0.0], effort: [0.1]}'

For JSK robot users

The launch files in sample/ take robot_name (the database name, by default) and the topics of each robot (host defaults to localhost, port to 8086):

```bash rossetip rossetmaster pr1040 # or pr1012, fetch15, fetch1075, baxter roslaunch influxdb_store pr2_influxdb_logger.launch robot_name:=pr1040 # PR1012, PR1040 roslaunch influxdb_store fetch_influxdb_logger.launch robot_name:=fetch15 # Fetch15, Fetch1075

File truncated at 100 lines see the full file

CHANGELOG

Changelog for package influxdb_store

3.0.2 (2026-11-26)

  • Merge pull request #594 from k-okada/fix-error-handling
  • influxdb_store: pass a Loader to yaml.load in transform_logger transform_logger calls yaml.load() without Loader on the tf2 allFramesAsYAML() string. PyYAML 6 made Loader mandatory, so every call raised TypeError: _graph_cb() logged it and stored no frames, and __init_ retried until it gave up with sys.exit(1). Use yaml.SafeLoader. The data is a plain mapping of frame names to str/float fields, which SafeLoader parses identically to the old default Loader (PyYAML < 5.1, ROS 1 Python 2) and FullLoader (5.1 to 5.4, ROS 1 noetic); SafeLoader also exists in all those versions. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>> Claude-Session: https://claude.ai/code/session_01Xo6jRt2Rcht9sQS6ms6A4p
  • Merge pull request #595 from k-okada/readme-update Update the READMEs for ROS 1 / ROS 2, with badges and demos
  • influxdb_store: add a demo GIF to README.md A terminal recording on ROS 2 jazzy: InfluxDB 1.8 in Docker, /joint_states published, joint_states_logger.py storing them, and the stored points queried with influx. Note the differences of the recorded commands from the README (container name, > /dev/null, -precision). Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>> Claude-Session: https://claude.ai/code/session_01Xo6jRt2Rcht9sQS6ms6A4p
  • influxdb_store: update README.md for ROS 1 / ROS 2 Describe how to run it on ROS 2 and ROS 1, its interface (topics, services, actions, parameters) as in the source, and its requirements. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>> Claude-Session: https://claude.ai/code/session_01Xo6jRt2Rcht9sQS6ms6A4p
  • Merge pull request #584 from k-okada/release-3.0.1
  • Contributors: Kei Okada

3.0.1 (2026-11-10)

  • Merge pull request #583 from k-okada/rosdistro-55247-review rosdistro#55247 review: rename power_switching_tools_ros to jsk_power_switching_tools, fix licenses
  • use SPDX license identifiers (BSD-3-Clause, Apache-2.0) in package.xml BSD -> BSD-3-Clause and Apache / "Apache License, Version 2.0" -> Apache-2.0 in all packages (ros/rosdistro#55247 review). The LICENSE files of all of them are BSD 3-Clause and Apache 2.0 respectively. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>
  • Contributors: Kei Okada

3.0.0 (2026-11-06)

  • Merge pull request #581 from k-okada/ros2-buildfarm-ros-environment Fix ROS2 buildfarm binary jobs: ros_environment, bundled flac, numpy wheel

  • [voicevox, chaplus_ros, emotion_analyzer, gdrive_ros, google_chat_ros, influxdb_store, power_switching_tools_ros, respeaker_ros, ros_speech_recognition, rospatlite, sesame_ros, switchbot_ros] depend on ros_environment for ROS2 buildfarm The buildfarm builds each package with only its own build dependencies, so without ros_environment $ROS_VERSION is empty and CMakeLists.txt takes the ROS1 branch (same as jsk_common#1835). voicevox also guesses ROS_VERSION from AMENT_PREFIX_PATH when it is unset. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>

  • Merge branch 'master' into fix_hoya

  • Merge branch 'master' into voicevox-ros1-ros2

  • AMENT_IGNORE: do not add AMENT_IGNORE to packages already ported to ROS2 chaplus_ros, emotion_analyzer, gdrive_ros, google_chat_ros, influxdb_store, power_switching_tools_ros, respeaker_ros, rospatlite, sesame_ros and switchbot_ros are already ROS2 packages on master, so this PR must not AMENT_IGNORE them. Also remove ros_speech_recognition/AMENT_IGNORE, as this PR ports it to ROS2. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>

  • Merge branch 'master' into ros2-speech-recognition-only

  • Merge pull request #575 from k-okada/ros2-support Add ROS2 (jazzy) support to chaplus_ros, emotion_analyzer, gdrive_ros, google_chat_ros, influxdb_store, power_switching_tools_ros, respeaker_ros, rospatlite, sesame_ros, switchbot_ros

  • AMENT_IGNORE packages ported to ROS2 in jsk-ros-pkg/jsk_3rdparty#575 chaplus_ros, emotion_analyzer, gdrive_ros, google_chat_ros, influxdb_store, power_switching_tools_ros, rospatlite, sesame_ros and switchbot_ros are ROS1 only here, so the ROS2 CI skips them until #575. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>

  • [influxdb_store] add ROS2 support Single package.xml/CMakeLists.txt branched on $ROS_VERSION, same as chaplus_ros and jsk_common's ROS2-ported packages.

    - CMakeLists.txt: the ROS2 block is prepended and the ROS1 original

File truncated at 100 lines see the full file

Dependant Packages

No known dependants.

Launch files

  • launch/fetch_battery_logger.launch
      • host
      • port
      • database
      • battery_states_topic
  • launch/influxdb_logger.launch
      • host
      • port
      • database
      • launch_joint_states_logger [default: true]
      • launch_map_transform_logger [default: true]
      • launch_base_transform_logger [default: true]
      • launch_network_states_logger [default: true]
      • joint_states_topic [default: /joint_states]
      • map_frame_id [default: map]
      • base_frame_id [default: base_link]
      • network_states_transmit_topic [default: /$(arg database)/wlan0/transmit]
      • network_states_receive_topic [default: /$(arg database)/wlan0/receive]
  • launch/pr2_battery_logger.launch
      • host
      • port
      • database
      • battery_states_topic
  • sample/baxter_influxdb_logger.launch
      • host [default: localhost]
      • port [default: 8086]
      • robot_name [default: baxter]
      • database [default: $(arg robot_name)]
      • joint_states_topic [default: /robot/joint_states]
      • base_frame_id [default: base]
  • sample/fetch_influxdb_logger.launch
      • host [default: localhost]
      • port [default: 8086]
      • robot_name [default: fetch15]
      • database [default: $(arg robot_name)]
      • joint_states_topic [default: /joint_states]
      • battery_states_topic [default: /battery_state]
      • map_frame_id [default: map]
      • base_frame_id [default: base_link]
      • network_states_transmit_topic [default: /$(arg robot_name)/wlan0/transmit]
      • network_states_receive_topic [default: /$(arg robot_name)/wlan0/receive]
  • sample/pr2_influxdb_logger.launch
      • host [default: localhost]
      • port [default: 8086]
      • robot_name [default: pr1040]
      • database [default: $(arg robot_name)]
      • joint_states_topic [default: /joint_states]
      • battery_states_topic [default: /battery/server2]
      • map_frame_id [default: map]
      • base_frame_id [default: base_footprint]
      • network_states_transmit_topic [default: /$(arg robot_name)/wan0/transmit]
      • network_states_receive_topic [default: /$(arg robot_name)/wan0/receive]

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged influxdb_store at Robotics Stack Exchange

No version for distro galactic showing jazzy. Known supported distros are highlighted in the buttons above.

Package Summary

Version 3.0.2
License BSD-3-Clause
Build type CATKIN
Use RECOMMENDED

Repository Summary

Description
Checkout URI https://github.com/jsk-ros-pkg/jsk_3rdparty.git
VCS Type git
VCS Version master
Last Updated 2026-11-26
Dev Status DEVELOPED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Package Description

The influxdb_store package

Maintainers

  • Shingo Kitagawa

Authors

  • Shingo Kitagawa

influxdb_store

Loggers which store ROS topics and TF into InfluxDB (1.x), to be browsed with e.g. Grafana.

influxdb_grafana

Node ROS 1 ROS 2 What it stores
joint_states_logger.py ✓ ✓ sensor_msgs/JointState (position, velocity, effort)
network_states_logger.py ✓ ✓ Transmitted and received bps (std_msgs/Float32)
map_transform_logger.py ✓   All TF frames relative to map
base_transform_logger.py ✓   All TF frames relative to base_link
pr2_battery_states_logger.py ✓   PR2 batteries (pr2_msgs/BatteryServer2)
fetch_battery_states_logger.py ✓   Fetch battery (power_msgs/BatteryState)

The transform loggers use the tf2_frames service of the ROS 1 tf2_ros buffer server, and the battery loggers the messages of PR2 / Fetch, so they are on ROS 1 only. There are no ROS 2 launch files: run the nodes with ros2 run.

Requirements

An InfluxDB 1.x server (e.g. 1.8). The nodes use the 1.x Python client (python3-influxdb, InfluxDBClient) without authentication, and create the database (~database) if it does not exist; InfluxDB 2.x and later are not supported. For a local test server:

docker run -d --name influxdb -p 8086:8086 influxdb:1.8

Usage

ROS 2

docker run -d --name influxdb -p 8086:8086 influxdb:1.8
# joint states to store (or a robot / joint_state_publisher); start it first, as
# joint_states_logger.py exits when no message comes in a period of ~duration (3 s)
ros2 topic pub -r 10 /joint_states sensor_msgs/msg/JointState \
  '{header: {stamp: now}, name: [joint1], position: [0.5], velocity: [0.0], effort: [0.1]}'
# another terminal
ros2 run influxdb_store joint_states_logger.py --ros-args \
  -r '~/input:=/joint_states' -p host:=localhost -p port:=8086 -p database:=test
# the stored data
docker exec influxdb influx -database test -execute 'SELECT * FROM joint_states ORDER BY time DESC LIMIT 6'

influxdb_store demo

(In the recording, the container is named influxdb_demo, the output of ros2 topic pub is discarded with > /dev/null, and influx -precision rfc3339 prints the time as a date.)

ros2 run influxdb_store network_states_logger.py --ros-args \
  -r '~/input/transmit:=/wlan0/transmit' -r '~/input/receive:=/wlan0/receive' -p database:=test

ROS 1

launch/influxdb_logger.launch starts the joint states, map transform, base transform and network states loggers; host, port and database have no default and must be given:

roslaunch influxdb_store influxdb_logger.launch host:=localhost port:=8086 database:=test

Argument Default  
host, port, database (required) InfluxDB server and database
launch_joint_states_logger true Run joint_states_logger.py (required="true")
launch_map_transform_logger true Run map_transform_logger.py
launch_base_transform_logger true Run base_transform_logger.py
launch_network_states_logger true Run network_states_logger.py
joint_states_topic /joint_states Input of joint_states_logger.py
map_frame_id map ~frame_id of map_transform_logger.py
base_frame_id base_link ~frame_id of base_transform_logger.py
network_states_transmit_topic /<database>/wlan0/transmit Input of network_states_logger.py
network_states_receive_topic /<database>/wlan0/receive Input of network_states_logger.py

launch/pr2_battery_logger.launch and launch/fetch_battery_logger.launch (arguments host, port, database, battery_states_topic, all required) run the battery loggers.

Single nodes:

rosrun influxdb_store joint_states_logger.py ~input:=/joint_states _database:=test
rostopic pub -r 10 -s /joint_states sensor_msgs/JointState \
  '{header: {stamp: now}, name: [joint1], position: [0.5], velocity: [0.0], effort: [0.1]}'

For JSK robot users

The launch files in sample/ take robot_name (the database name, by default) and the topics of each robot (host defaults to localhost, port to 8086):

```bash rossetip rossetmaster pr1040 # or pr1012, fetch15, fetch1075, baxter roslaunch influxdb_store pr2_influxdb_logger.launch robot_name:=pr1040 # PR1012, PR1040 roslaunch influxdb_store fetch_influxdb_logger.launch robot_name:=fetch15 # Fetch15, Fetch1075

File truncated at 100 lines see the full file

CHANGELOG

Changelog for package influxdb_store

3.0.2 (2026-11-26)

  • Merge pull request #594 from k-okada/fix-error-handling
  • influxdb_store: pass a Loader to yaml.load in transform_logger transform_logger calls yaml.load() without Loader on the tf2 allFramesAsYAML() string. PyYAML 6 made Loader mandatory, so every call raised TypeError: _graph_cb() logged it and stored no frames, and __init_ retried until it gave up with sys.exit(1). Use yaml.SafeLoader. The data is a plain mapping of frame names to str/float fields, which SafeLoader parses identically to the old default Loader (PyYAML < 5.1, ROS 1 Python 2) and FullLoader (5.1 to 5.4, ROS 1 noetic); SafeLoader also exists in all those versions. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>> Claude-Session: https://claude.ai/code/session_01Xo6jRt2Rcht9sQS6ms6A4p
  • Merge pull request #595 from k-okada/readme-update Update the READMEs for ROS 1 / ROS 2, with badges and demos
  • influxdb_store: add a demo GIF to README.md A terminal recording on ROS 2 jazzy: InfluxDB 1.8 in Docker, /joint_states published, joint_states_logger.py storing them, and the stored points queried with influx. Note the differences of the recorded commands from the README (container name, > /dev/null, -precision). Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>> Claude-Session: https://claude.ai/code/session_01Xo6jRt2Rcht9sQS6ms6A4p
  • influxdb_store: update README.md for ROS 1 / ROS 2 Describe how to run it on ROS 2 and ROS 1, its interface (topics, services, actions, parameters) as in the source, and its requirements. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>> Claude-Session: https://claude.ai/code/session_01Xo6jRt2Rcht9sQS6ms6A4p
  • Merge pull request #584 from k-okada/release-3.0.1
  • Contributors: Kei Okada

3.0.1 (2026-11-10)

  • Merge pull request #583 from k-okada/rosdistro-55247-review rosdistro#55247 review: rename power_switching_tools_ros to jsk_power_switching_tools, fix licenses
  • use SPDX license identifiers (BSD-3-Clause, Apache-2.0) in package.xml BSD -> BSD-3-Clause and Apache / "Apache License, Version 2.0" -> Apache-2.0 in all packages (ros/rosdistro#55247 review). The LICENSE files of all of them are BSD 3-Clause and Apache 2.0 respectively. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>
  • Contributors: Kei Okada

3.0.0 (2026-11-06)

  • Merge pull request #581 from k-okada/ros2-buildfarm-ros-environment Fix ROS2 buildfarm binary jobs: ros_environment, bundled flac, numpy wheel

  • [voicevox, chaplus_ros, emotion_analyzer, gdrive_ros, google_chat_ros, influxdb_store, power_switching_tools_ros, respeaker_ros, ros_speech_recognition, rospatlite, sesame_ros, switchbot_ros] depend on ros_environment for ROS2 buildfarm The buildfarm builds each package with only its own build dependencies, so without ros_environment $ROS_VERSION is empty and CMakeLists.txt takes the ROS1 branch (same as jsk_common#1835). voicevox also guesses ROS_VERSION from AMENT_PREFIX_PATH when it is unset. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>

  • Merge branch 'master' into fix_hoya

  • Merge branch 'master' into voicevox-ros1-ros2

  • AMENT_IGNORE: do not add AMENT_IGNORE to packages already ported to ROS2 chaplus_ros, emotion_analyzer, gdrive_ros, google_chat_ros, influxdb_store, power_switching_tools_ros, respeaker_ros, rospatlite, sesame_ros and switchbot_ros are already ROS2 packages on master, so this PR must not AMENT_IGNORE them. Also remove ros_speech_recognition/AMENT_IGNORE, as this PR ports it to ROS2. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>

  • Merge branch 'master' into ros2-speech-recognition-only

  • Merge pull request #575 from k-okada/ros2-support Add ROS2 (jazzy) support to chaplus_ros, emotion_analyzer, gdrive_ros, google_chat_ros, influxdb_store, power_switching_tools_ros, respeaker_ros, rospatlite, sesame_ros, switchbot_ros

  • AMENT_IGNORE packages ported to ROS2 in jsk-ros-pkg/jsk_3rdparty#575 chaplus_ros, emotion_analyzer, gdrive_ros, google_chat_ros, influxdb_store, power_switching_tools_ros, rospatlite, sesame_ros and switchbot_ros are ROS1 only here, so the ROS2 CI skips them until #575. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>

  • [influxdb_store] add ROS2 support Single package.xml/CMakeLists.txt branched on $ROS_VERSION, same as chaplus_ros and jsk_common's ROS2-ported packages.

    - CMakeLists.txt: the ROS2 block is prepended and the ROS1 original

File truncated at 100 lines see the full file

Dependant Packages

No known dependants.

Launch files

  • launch/fetch_battery_logger.launch
      • host
      • port
      • database
      • battery_states_topic
  • launch/influxdb_logger.launch
      • host
      • port
      • database
      • launch_joint_states_logger [default: true]
      • launch_map_transform_logger [default: true]
      • launch_base_transform_logger [default: true]
      • launch_network_states_logger [default: true]
      • joint_states_topic [default: /joint_states]
      • map_frame_id [default: map]
      • base_frame_id [default: base_link]
      • network_states_transmit_topic [default: /$(arg database)/wlan0/transmit]
      • network_states_receive_topic [default: /$(arg database)/wlan0/receive]
  • launch/pr2_battery_logger.launch
      • host
      • port
      • database
      • battery_states_topic
  • sample/baxter_influxdb_logger.launch
      • host [default: localhost]
      • port [default: 8086]
      • robot_name [default: baxter]
      • database [default: $(arg robot_name)]
      • joint_states_topic [default: /robot/joint_states]
      • base_frame_id [default: base]
  • sample/fetch_influxdb_logger.launch
      • host [default: localhost]
      • port [default: 8086]
      • robot_name [default: fetch15]
      • database [default: $(arg robot_name)]
      • joint_states_topic [default: /joint_states]
      • battery_states_topic [default: /battery_state]
      • map_frame_id [default: map]
      • base_frame_id [default: base_link]
      • network_states_transmit_topic [default: /$(arg robot_name)/wlan0/transmit]
      • network_states_receive_topic [default: /$(arg robot_name)/wlan0/receive]
  • sample/pr2_influxdb_logger.launch
      • host [default: localhost]
      • port [default: 8086]
      • robot_name [default: pr1040]
      • database [default: $(arg robot_name)]
      • joint_states_topic [default: /joint_states]
      • battery_states_topic [default: /battery/server2]
      • map_frame_id [default: map]
      • base_frame_id [default: base_footprint]
      • network_states_transmit_topic [default: /$(arg robot_name)/wan0/transmit]
      • network_states_receive_topic [default: /$(arg robot_name)/wan0/receive]

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged influxdb_store at Robotics Stack Exchange

No version for distro iron showing jazzy. Known supported distros are highlighted in the buttons above.

Package Summary

Version 3.0.2
License BSD-3-Clause
Build type CATKIN
Use RECOMMENDED

Repository Summary

Description
Checkout URI https://github.com/jsk-ros-pkg/jsk_3rdparty.git
VCS Type git
VCS Version master
Last Updated 2026-11-26
Dev Status DEVELOPED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Package Description

The influxdb_store package

Maintainers

  • Shingo Kitagawa

Authors

  • Shingo Kitagawa

influxdb_store

Loggers which store ROS topics and TF into InfluxDB (1.x), to be browsed with e.g. Grafana.

influxdb_grafana

Node ROS 1 ROS 2 What it stores
joint_states_logger.py ✓ ✓ sensor_msgs/JointState (position, velocity, effort)
network_states_logger.py ✓ ✓ Transmitted and received bps (std_msgs/Float32)
map_transform_logger.py ✓   All TF frames relative to map
base_transform_logger.py ✓   All TF frames relative to base_link
pr2_battery_states_logger.py ✓   PR2 batteries (pr2_msgs/BatteryServer2)
fetch_battery_states_logger.py ✓   Fetch battery (power_msgs/BatteryState)

The transform loggers use the tf2_frames service of the ROS 1 tf2_ros buffer server, and the battery loggers the messages of PR2 / Fetch, so they are on ROS 1 only. There are no ROS 2 launch files: run the nodes with ros2 run.

Requirements

An InfluxDB 1.x server (e.g. 1.8). The nodes use the 1.x Python client (python3-influxdb, InfluxDBClient) without authentication, and create the database (~database) if it does not exist; InfluxDB 2.x and later are not supported. For a local test server:

docker run -d --name influxdb -p 8086:8086 influxdb:1.8

Usage

ROS 2

docker run -d --name influxdb -p 8086:8086 influxdb:1.8
# joint states to store (or a robot / joint_state_publisher); start it first, as
# joint_states_logger.py exits when no message comes in a period of ~duration (3 s)
ros2 topic pub -r 10 /joint_states sensor_msgs/msg/JointState \
  '{header: {stamp: now}, name: [joint1], position: [0.5], velocity: [0.0], effort: [0.1]}'
# another terminal
ros2 run influxdb_store joint_states_logger.py --ros-args \
  -r '~/input:=/joint_states' -p host:=localhost -p port:=8086 -p database:=test
# the stored data
docker exec influxdb influx -database test -execute 'SELECT * FROM joint_states ORDER BY time DESC LIMIT 6'

influxdb_store demo

(In the recording, the container is named influxdb_demo, the output of ros2 topic pub is discarded with > /dev/null, and influx -precision rfc3339 prints the time as a date.)

ros2 run influxdb_store network_states_logger.py --ros-args \
  -r '~/input/transmit:=/wlan0/transmit' -r '~/input/receive:=/wlan0/receive' -p database:=test

ROS 1

launch/influxdb_logger.launch starts the joint states, map transform, base transform and network states loggers; host, port and database have no default and must be given:

roslaunch influxdb_store influxdb_logger.launch host:=localhost port:=8086 database:=test

Argument Default  
host, port, database (required) InfluxDB server and database
launch_joint_states_logger true Run joint_states_logger.py (required="true")
launch_map_transform_logger true Run map_transform_logger.py
launch_base_transform_logger true Run base_transform_logger.py
launch_network_states_logger true Run network_states_logger.py
joint_states_topic /joint_states Input of joint_states_logger.py
map_frame_id map ~frame_id of map_transform_logger.py
base_frame_id base_link ~frame_id of base_transform_logger.py
network_states_transmit_topic /<database>/wlan0/transmit Input of network_states_logger.py
network_states_receive_topic /<database>/wlan0/receive Input of network_states_logger.py

launch/pr2_battery_logger.launch and launch/fetch_battery_logger.launch (arguments host, port, database, battery_states_topic, all required) run the battery loggers.

Single nodes:

rosrun influxdb_store joint_states_logger.py ~input:=/joint_states _database:=test
rostopic pub -r 10 -s /joint_states sensor_msgs/JointState \
  '{header: {stamp: now}, name: [joint1], position: [0.5], velocity: [0.0], effort: [0.1]}'

For JSK robot users

The launch files in sample/ take robot_name (the database name, by default) and the topics of each robot (host defaults to localhost, port to 8086):

```bash rossetip rossetmaster pr1040 # or pr1012, fetch15, fetch1075, baxter roslaunch influxdb_store pr2_influxdb_logger.launch robot_name:=pr1040 # PR1012, PR1040 roslaunch influxdb_store fetch_influxdb_logger.launch robot_name:=fetch15 # Fetch15, Fetch1075

File truncated at 100 lines see the full file

CHANGELOG

Changelog for package influxdb_store

3.0.2 (2026-11-26)

  • Merge pull request #594 from k-okada/fix-error-handling
  • influxdb_store: pass a Loader to yaml.load in transform_logger transform_logger calls yaml.load() without Loader on the tf2 allFramesAsYAML() string. PyYAML 6 made Loader mandatory, so every call raised TypeError: _graph_cb() logged it and stored no frames, and __init_ retried until it gave up with sys.exit(1). Use yaml.SafeLoader. The data is a plain mapping of frame names to str/float fields, which SafeLoader parses identically to the old default Loader (PyYAML < 5.1, ROS 1 Python 2) and FullLoader (5.1 to 5.4, ROS 1 noetic); SafeLoader also exists in all those versions. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>> Claude-Session: https://claude.ai/code/session_01Xo6jRt2Rcht9sQS6ms6A4p
  • Merge pull request #595 from k-okada/readme-update Update the READMEs for ROS 1 / ROS 2, with badges and demos
  • influxdb_store: add a demo GIF to README.md A terminal recording on ROS 2 jazzy: InfluxDB 1.8 in Docker, /joint_states published, joint_states_logger.py storing them, and the stored points queried with influx. Note the differences of the recorded commands from the README (container name, > /dev/null, -precision). Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>> Claude-Session: https://claude.ai/code/session_01Xo6jRt2Rcht9sQS6ms6A4p
  • influxdb_store: update README.md for ROS 1 / ROS 2 Describe how to run it on ROS 2 and ROS 1, its interface (topics, services, actions, parameters) as in the source, and its requirements. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>> Claude-Session: https://claude.ai/code/session_01Xo6jRt2Rcht9sQS6ms6A4p
  • Merge pull request #584 from k-okada/release-3.0.1
  • Contributors: Kei Okada

3.0.1 (2026-11-10)

  • Merge pull request #583 from k-okada/rosdistro-55247-review rosdistro#55247 review: rename power_switching_tools_ros to jsk_power_switching_tools, fix licenses
  • use SPDX license identifiers (BSD-3-Clause, Apache-2.0) in package.xml BSD -> BSD-3-Clause and Apache / "Apache License, Version 2.0" -> Apache-2.0 in all packages (ros/rosdistro#55247 review). The LICENSE files of all of them are BSD 3-Clause and Apache 2.0 respectively. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>
  • Contributors: Kei Okada

3.0.0 (2026-11-06)

  • Merge pull request #581 from k-okada/ros2-buildfarm-ros-environment Fix ROS2 buildfarm binary jobs: ros_environment, bundled flac, numpy wheel

  • [voicevox, chaplus_ros, emotion_analyzer, gdrive_ros, google_chat_ros, influxdb_store, power_switching_tools_ros, respeaker_ros, ros_speech_recognition, rospatlite, sesame_ros, switchbot_ros] depend on ros_environment for ROS2 buildfarm The buildfarm builds each package with only its own build dependencies, so without ros_environment $ROS_VERSION is empty and CMakeLists.txt takes the ROS1 branch (same as jsk_common#1835). voicevox also guesses ROS_VERSION from AMENT_PREFIX_PATH when it is unset. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>

  • Merge branch 'master' into fix_hoya

  • Merge branch 'master' into voicevox-ros1-ros2

  • AMENT_IGNORE: do not add AMENT_IGNORE to packages already ported to ROS2 chaplus_ros, emotion_analyzer, gdrive_ros, google_chat_ros, influxdb_store, power_switching_tools_ros, respeaker_ros, rospatlite, sesame_ros and switchbot_ros are already ROS2 packages on master, so this PR must not AMENT_IGNORE them. Also remove ros_speech_recognition/AMENT_IGNORE, as this PR ports it to ROS2. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>

  • Merge branch 'master' into ros2-speech-recognition-only

  • Merge pull request #575 from k-okada/ros2-support Add ROS2 (jazzy) support to chaplus_ros, emotion_analyzer, gdrive_ros, google_chat_ros, influxdb_store, power_switching_tools_ros, respeaker_ros, rospatlite, sesame_ros, switchbot_ros

  • AMENT_IGNORE packages ported to ROS2 in jsk-ros-pkg/jsk_3rdparty#575 chaplus_ros, emotion_analyzer, gdrive_ros, google_chat_ros, influxdb_store, power_switching_tools_ros, rospatlite, sesame_ros and switchbot_ros are ROS1 only here, so the ROS2 CI skips them until #575. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>

  • [influxdb_store] add ROS2 support Single package.xml/CMakeLists.txt branched on $ROS_VERSION, same as chaplus_ros and jsk_common's ROS2-ported packages.

    - CMakeLists.txt: the ROS2 block is prepended and the ROS1 original

File truncated at 100 lines see the full file

Dependant Packages

No known dependants.

Launch files

  • launch/fetch_battery_logger.launch
      • host
      • port
      • database
      • battery_states_topic
  • launch/influxdb_logger.launch
      • host
      • port
      • database
      • launch_joint_states_logger [default: true]
      • launch_map_transform_logger [default: true]
      • launch_base_transform_logger [default: true]
      • launch_network_states_logger [default: true]
      • joint_states_topic [default: /joint_states]
      • map_frame_id [default: map]
      • base_frame_id [default: base_link]
      • network_states_transmit_topic [default: /$(arg database)/wlan0/transmit]
      • network_states_receive_topic [default: /$(arg database)/wlan0/receive]
  • launch/pr2_battery_logger.launch
      • host
      • port
      • database
      • battery_states_topic
  • sample/baxter_influxdb_logger.launch
      • host [default: localhost]
      • port [default: 8086]
      • robot_name [default: baxter]
      • database [default: $(arg robot_name)]
      • joint_states_topic [default: /robot/joint_states]
      • base_frame_id [default: base]
  • sample/fetch_influxdb_logger.launch
      • host [default: localhost]
      • port [default: 8086]
      • robot_name [default: fetch15]
      • database [default: $(arg robot_name)]
      • joint_states_topic [default: /joint_states]
      • battery_states_topic [default: /battery_state]
      • map_frame_id [default: map]
      • base_frame_id [default: base_link]
      • network_states_transmit_topic [default: /$(arg robot_name)/wlan0/transmit]
      • network_states_receive_topic [default: /$(arg robot_name)/wlan0/receive]
  • sample/pr2_influxdb_logger.launch
      • host [default: localhost]
      • port [default: 8086]
      • robot_name [default: pr1040]
      • database [default: $(arg robot_name)]
      • joint_states_topic [default: /joint_states]
      • battery_states_topic [default: /battery/server2]
      • map_frame_id [default: map]
      • base_frame_id [default: base_footprint]
      • network_states_transmit_topic [default: /$(arg robot_name)/wan0/transmit]
      • network_states_receive_topic [default: /$(arg robot_name)/wan0/receive]

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged influxdb_store at Robotics Stack Exchange

Package Summary

Version 3.0.2
License BSD-3-Clause
Build type CATKIN
Use RECOMMENDED

Repository Summary

Description
Checkout URI https://github.com/jsk-ros-pkg/jsk_3rdparty.git
VCS Type git
VCS Version master
Last Updated 2026-11-26
Dev Status DEVELOPED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Package Description

The influxdb_store package

Maintainers

  • Shingo Kitagawa

Authors

  • Shingo Kitagawa

influxdb_store

Loggers which store ROS topics and TF into InfluxDB (1.x), to be browsed with e.g. Grafana.

influxdb_grafana

Node ROS 1 ROS 2 What it stores
joint_states_logger.py ✓ ✓ sensor_msgs/JointState (position, velocity, effort)
network_states_logger.py ✓ ✓ Transmitted and received bps (std_msgs/Float32)
map_transform_logger.py ✓   All TF frames relative to map
base_transform_logger.py ✓   All TF frames relative to base_link
pr2_battery_states_logger.py ✓   PR2 batteries (pr2_msgs/BatteryServer2)
fetch_battery_states_logger.py ✓   Fetch battery (power_msgs/BatteryState)

The transform loggers use the tf2_frames service of the ROS 1 tf2_ros buffer server, and the battery loggers the messages of PR2 / Fetch, so they are on ROS 1 only. There are no ROS 2 launch files: run the nodes with ros2 run.

Requirements

An InfluxDB 1.x server (e.g. 1.8). The nodes use the 1.x Python client (python3-influxdb, InfluxDBClient) without authentication, and create the database (~database) if it does not exist; InfluxDB 2.x and later are not supported. For a local test server:

docker run -d --name influxdb -p 8086:8086 influxdb:1.8

Usage

ROS 2

docker run -d --name influxdb -p 8086:8086 influxdb:1.8
# joint states to store (or a robot / joint_state_publisher); start it first, as
# joint_states_logger.py exits when no message comes in a period of ~duration (3 s)
ros2 topic pub -r 10 /joint_states sensor_msgs/msg/JointState \
  '{header: {stamp: now}, name: [joint1], position: [0.5], velocity: [0.0], effort: [0.1]}'
# another terminal
ros2 run influxdb_store joint_states_logger.py --ros-args \
  -r '~/input:=/joint_states' -p host:=localhost -p port:=8086 -p database:=test
# the stored data
docker exec influxdb influx -database test -execute 'SELECT * FROM joint_states ORDER BY time DESC LIMIT 6'

influxdb_store demo

(In the recording, the container is named influxdb_demo, the output of ros2 topic pub is discarded with > /dev/null, and influx -precision rfc3339 prints the time as a date.)

ros2 run influxdb_store network_states_logger.py --ros-args \
  -r '~/input/transmit:=/wlan0/transmit' -r '~/input/receive:=/wlan0/receive' -p database:=test

ROS 1

launch/influxdb_logger.launch starts the joint states, map transform, base transform and network states loggers; host, port and database have no default and must be given:

roslaunch influxdb_store influxdb_logger.launch host:=localhost port:=8086 database:=test

Argument Default  
host, port, database (required) InfluxDB server and database
launch_joint_states_logger true Run joint_states_logger.py (required="true")
launch_map_transform_logger true Run map_transform_logger.py
launch_base_transform_logger true Run base_transform_logger.py
launch_network_states_logger true Run network_states_logger.py
joint_states_topic /joint_states Input of joint_states_logger.py
map_frame_id map ~frame_id of map_transform_logger.py
base_frame_id base_link ~frame_id of base_transform_logger.py
network_states_transmit_topic /<database>/wlan0/transmit Input of network_states_logger.py
network_states_receive_topic /<database>/wlan0/receive Input of network_states_logger.py

launch/pr2_battery_logger.launch and launch/fetch_battery_logger.launch (arguments host, port, database, battery_states_topic, all required) run the battery loggers.

Single nodes:

rosrun influxdb_store joint_states_logger.py ~input:=/joint_states _database:=test
rostopic pub -r 10 -s /joint_states sensor_msgs/JointState \
  '{header: {stamp: now}, name: [joint1], position: [0.5], velocity: [0.0], effort: [0.1]}'

For JSK robot users

The launch files in sample/ take robot_name (the database name, by default) and the topics of each robot (host defaults to localhost, port to 8086):

```bash rossetip rossetmaster pr1040 # or pr1012, fetch15, fetch1075, baxter roslaunch influxdb_store pr2_influxdb_logger.launch robot_name:=pr1040 # PR1012, PR1040 roslaunch influxdb_store fetch_influxdb_logger.launch robot_name:=fetch15 # Fetch15, Fetch1075

File truncated at 100 lines see the full file

CHANGELOG

Changelog for package influxdb_store

3.0.2 (2026-11-26)

  • Merge pull request #594 from k-okada/fix-error-handling
  • influxdb_store: pass a Loader to yaml.load in transform_logger transform_logger calls yaml.load() without Loader on the tf2 allFramesAsYAML() string. PyYAML 6 made Loader mandatory, so every call raised TypeError: _graph_cb() logged it and stored no frames, and __init_ retried until it gave up with sys.exit(1). Use yaml.SafeLoader. The data is a plain mapping of frame names to str/float fields, which SafeLoader parses identically to the old default Loader (PyYAML < 5.1, ROS 1 Python 2) and FullLoader (5.1 to 5.4, ROS 1 noetic); SafeLoader also exists in all those versions. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>> Claude-Session: https://claude.ai/code/session_01Xo6jRt2Rcht9sQS6ms6A4p
  • Merge pull request #595 from k-okada/readme-update Update the READMEs for ROS 1 / ROS 2, with badges and demos
  • influxdb_store: add a demo GIF to README.md A terminal recording on ROS 2 jazzy: InfluxDB 1.8 in Docker, /joint_states published, joint_states_logger.py storing them, and the stored points queried with influx. Note the differences of the recorded commands from the README (container name, > /dev/null, -precision). Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>> Claude-Session: https://claude.ai/code/session_01Xo6jRt2Rcht9sQS6ms6A4p
  • influxdb_store: update README.md for ROS 1 / ROS 2 Describe how to run it on ROS 2 and ROS 1, its interface (topics, services, actions, parameters) as in the source, and its requirements. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>> Claude-Session: https://claude.ai/code/session_01Xo6jRt2Rcht9sQS6ms6A4p
  • Merge pull request #584 from k-okada/release-3.0.1
  • Contributors: Kei Okada

3.0.1 (2026-11-10)

  • Merge pull request #583 from k-okada/rosdistro-55247-review rosdistro#55247 review: rename power_switching_tools_ros to jsk_power_switching_tools, fix licenses
  • use SPDX license identifiers (BSD-3-Clause, Apache-2.0) in package.xml BSD -> BSD-3-Clause and Apache / "Apache License, Version 2.0" -> Apache-2.0 in all packages (ros/rosdistro#55247 review). The LICENSE files of all of them are BSD 3-Clause and Apache 2.0 respectively. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>
  • Contributors: Kei Okada

3.0.0 (2026-11-06)

  • Merge pull request #581 from k-okada/ros2-buildfarm-ros-environment Fix ROS2 buildfarm binary jobs: ros_environment, bundled flac, numpy wheel

  • [voicevox, chaplus_ros, emotion_analyzer, gdrive_ros, google_chat_ros, influxdb_store, power_switching_tools_ros, respeaker_ros, ros_speech_recognition, rospatlite, sesame_ros, switchbot_ros] depend on ros_environment for ROS2 buildfarm The buildfarm builds each package with only its own build dependencies, so without ros_environment $ROS_VERSION is empty and CMakeLists.txt takes the ROS1 branch (same as jsk_common#1835). voicevox also guesses ROS_VERSION from AMENT_PREFIX_PATH when it is unset. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>

  • Merge branch 'master' into fix_hoya

  • Merge branch 'master' into voicevox-ros1-ros2

  • AMENT_IGNORE: do not add AMENT_IGNORE to packages already ported to ROS2 chaplus_ros, emotion_analyzer, gdrive_ros, google_chat_ros, influxdb_store, power_switching_tools_ros, respeaker_ros, rospatlite, sesame_ros and switchbot_ros are already ROS2 packages on master, so this PR must not AMENT_IGNORE them. Also remove ros_speech_recognition/AMENT_IGNORE, as this PR ports it to ROS2. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>

  • Merge branch 'master' into ros2-speech-recognition-only

  • Merge pull request #575 from k-okada/ros2-support Add ROS2 (jazzy) support to chaplus_ros, emotion_analyzer, gdrive_ros, google_chat_ros, influxdb_store, power_switching_tools_ros, respeaker_ros, rospatlite, sesame_ros, switchbot_ros

  • AMENT_IGNORE packages ported to ROS2 in jsk-ros-pkg/jsk_3rdparty#575 chaplus_ros, emotion_analyzer, gdrive_ros, google_chat_ros, influxdb_store, power_switching_tools_ros, rospatlite, sesame_ros and switchbot_ros are ROS1 only here, so the ROS2 CI skips them until #575. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>

  • [influxdb_store] add ROS2 support Single package.xml/CMakeLists.txt branched on $ROS_VERSION, same as chaplus_ros and jsk_common's ROS2-ported packages.

    - CMakeLists.txt: the ROS2 block is prepended and the ROS1 original

File truncated at 100 lines see the full file

Dependant Packages

Name Deps
eus_teleop

Launch files

  • launch/fetch_battery_logger.launch
      • host
      • port
      • database
      • battery_states_topic
  • launch/influxdb_logger.launch
      • host
      • port
      • database
      • launch_joint_states_logger [default: true]
      • launch_map_transform_logger [default: true]
      • launch_base_transform_logger [default: true]
      • launch_network_states_logger [default: true]
      • joint_states_topic [default: /joint_states]
      • map_frame_id [default: map]
      • base_frame_id [default: base_link]
      • network_states_transmit_topic [default: /$(arg database)/wlan0/transmit]
      • network_states_receive_topic [default: /$(arg database)/wlan0/receive]
  • launch/pr2_battery_logger.launch
      • host
      • port
      • database
      • battery_states_topic
  • sample/baxter_influxdb_logger.launch
      • host [default: localhost]
      • port [default: 8086]
      • robot_name [default: baxter]
      • database [default: $(arg robot_name)]
      • joint_states_topic [default: /robot/joint_states]
      • base_frame_id [default: base]
  • sample/fetch_influxdb_logger.launch
      • host [default: localhost]
      • port [default: 8086]
      • robot_name [default: fetch15]
      • database [default: $(arg robot_name)]
      • joint_states_topic [default: /joint_states]
      • battery_states_topic [default: /battery_state]
      • map_frame_id [default: map]
      • base_frame_id [default: base_link]
      • network_states_transmit_topic [default: /$(arg robot_name)/wlan0/transmit]
      • network_states_receive_topic [default: /$(arg robot_name)/wlan0/receive]
  • sample/pr2_influxdb_logger.launch
      • host [default: localhost]
      • port [default: 8086]
      • robot_name [default: pr1040]
      • database [default: $(arg robot_name)]
      • joint_states_topic [default: /joint_states]
      • battery_states_topic [default: /battery/server2]
      • map_frame_id [default: map]
      • base_frame_id [default: base_footprint]
      • network_states_transmit_topic [default: /$(arg robot_name)/wan0/transmit]
      • network_states_receive_topic [default: /$(arg robot_name)/wan0/receive]

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged influxdb_store at Robotics Stack Exchange

Package Summary

Version 3.0.2
License BSD-3-Clause
Build type CATKIN
Use RECOMMENDED

Repository Summary

Description
Checkout URI https://github.com/jsk-ros-pkg/jsk_3rdparty.git
VCS Type git
VCS Version master
Last Updated 2026-11-26
Dev Status DEVELOPED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Package Description

The influxdb_store package

Maintainers

  • Shingo Kitagawa

Authors

  • Shingo Kitagawa

influxdb_store

Loggers which store ROS topics and TF into InfluxDB (1.x), to be browsed with e.g. Grafana.

influxdb_grafana

Node ROS 1 ROS 2 What it stores
joint_states_logger.py ✓ ✓ sensor_msgs/JointState (position, velocity, effort)
network_states_logger.py ✓ ✓ Transmitted and received bps (std_msgs/Float32)
map_transform_logger.py ✓   All TF frames relative to map
base_transform_logger.py ✓   All TF frames relative to base_link
pr2_battery_states_logger.py ✓   PR2 batteries (pr2_msgs/BatteryServer2)
fetch_battery_states_logger.py ✓   Fetch battery (power_msgs/BatteryState)

The transform loggers use the tf2_frames service of the ROS 1 tf2_ros buffer server, and the battery loggers the messages of PR2 / Fetch, so they are on ROS 1 only. There are no ROS 2 launch files: run the nodes with ros2 run.

Requirements

An InfluxDB 1.x server (e.g. 1.8). The nodes use the 1.x Python client (python3-influxdb, InfluxDBClient) without authentication, and create the database (~database) if it does not exist; InfluxDB 2.x and later are not supported. For a local test server:

docker run -d --name influxdb -p 8086:8086 influxdb:1.8

Usage

ROS 2

docker run -d --name influxdb -p 8086:8086 influxdb:1.8
# joint states to store (or a robot / joint_state_publisher); start it first, as
# joint_states_logger.py exits when no message comes in a period of ~duration (3 s)
ros2 topic pub -r 10 /joint_states sensor_msgs/msg/JointState \
  '{header: {stamp: now}, name: [joint1], position: [0.5], velocity: [0.0], effort: [0.1]}'
# another terminal
ros2 run influxdb_store joint_states_logger.py --ros-args \
  -r '~/input:=/joint_states' -p host:=localhost -p port:=8086 -p database:=test
# the stored data
docker exec influxdb influx -database test -execute 'SELECT * FROM joint_states ORDER BY time DESC LIMIT 6'

influxdb_store demo

(In the recording, the container is named influxdb_demo, the output of ros2 topic pub is discarded with > /dev/null, and influx -precision rfc3339 prints the time as a date.)

ros2 run influxdb_store network_states_logger.py --ros-args \
  -r '~/input/transmit:=/wlan0/transmit' -r '~/input/receive:=/wlan0/receive' -p database:=test

ROS 1

launch/influxdb_logger.launch starts the joint states, map transform, base transform and network states loggers; host, port and database have no default and must be given:

roslaunch influxdb_store influxdb_logger.launch host:=localhost port:=8086 database:=test

Argument Default  
host, port, database (required) InfluxDB server and database
launch_joint_states_logger true Run joint_states_logger.py (required="true")
launch_map_transform_logger true Run map_transform_logger.py
launch_base_transform_logger true Run base_transform_logger.py
launch_network_states_logger true Run network_states_logger.py
joint_states_topic /joint_states Input of joint_states_logger.py
map_frame_id map ~frame_id of map_transform_logger.py
base_frame_id base_link ~frame_id of base_transform_logger.py
network_states_transmit_topic /<database>/wlan0/transmit Input of network_states_logger.py
network_states_receive_topic /<database>/wlan0/receive Input of network_states_logger.py

launch/pr2_battery_logger.launch and launch/fetch_battery_logger.launch (arguments host, port, database, battery_states_topic, all required) run the battery loggers.

Single nodes:

rosrun influxdb_store joint_states_logger.py ~input:=/joint_states _database:=test
rostopic pub -r 10 -s /joint_states sensor_msgs/JointState \
  '{header: {stamp: now}, name: [joint1], position: [0.5], velocity: [0.0], effort: [0.1]}'

For JSK robot users

The launch files in sample/ take robot_name (the database name, by default) and the topics of each robot (host defaults to localhost, port to 8086):

```bash rossetip rossetmaster pr1040 # or pr1012, fetch15, fetch1075, baxter roslaunch influxdb_store pr2_influxdb_logger.launch robot_name:=pr1040 # PR1012, PR1040 roslaunch influxdb_store fetch_influxdb_logger.launch robot_name:=fetch15 # Fetch15, Fetch1075

File truncated at 100 lines see the full file

CHANGELOG

Changelog for package influxdb_store

3.0.2 (2026-11-26)

  • Merge pull request #594 from k-okada/fix-error-handling
  • influxdb_store: pass a Loader to yaml.load in transform_logger transform_logger calls yaml.load() without Loader on the tf2 allFramesAsYAML() string. PyYAML 6 made Loader mandatory, so every call raised TypeError: _graph_cb() logged it and stored no frames, and __init_ retried until it gave up with sys.exit(1). Use yaml.SafeLoader. The data is a plain mapping of frame names to str/float fields, which SafeLoader parses identically to the old default Loader (PyYAML < 5.1, ROS 1 Python 2) and FullLoader (5.1 to 5.4, ROS 1 noetic); SafeLoader also exists in all those versions. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>> Claude-Session: https://claude.ai/code/session_01Xo6jRt2Rcht9sQS6ms6A4p
  • Merge pull request #595 from k-okada/readme-update Update the READMEs for ROS 1 / ROS 2, with badges and demos
  • influxdb_store: add a demo GIF to README.md A terminal recording on ROS 2 jazzy: InfluxDB 1.8 in Docker, /joint_states published, joint_states_logger.py storing them, and the stored points queried with influx. Note the differences of the recorded commands from the README (container name, > /dev/null, -precision). Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>> Claude-Session: https://claude.ai/code/session_01Xo6jRt2Rcht9sQS6ms6A4p
  • influxdb_store: update README.md for ROS 1 / ROS 2 Describe how to run it on ROS 2 and ROS 1, its interface (topics, services, actions, parameters) as in the source, and its requirements. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>> Claude-Session: https://claude.ai/code/session_01Xo6jRt2Rcht9sQS6ms6A4p
  • Merge pull request #584 from k-okada/release-3.0.1
  • Contributors: Kei Okada

3.0.1 (2026-11-10)

  • Merge pull request #583 from k-okada/rosdistro-55247-review rosdistro#55247 review: rename power_switching_tools_ros to jsk_power_switching_tools, fix licenses
  • use SPDX license identifiers (BSD-3-Clause, Apache-2.0) in package.xml BSD -> BSD-3-Clause and Apache / "Apache License, Version 2.0" -> Apache-2.0 in all packages (ros/rosdistro#55247 review). The LICENSE files of all of them are BSD 3-Clause and Apache 2.0 respectively. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>
  • Contributors: Kei Okada

3.0.0 (2026-11-06)

  • Merge pull request #581 from k-okada/ros2-buildfarm-ros-environment Fix ROS2 buildfarm binary jobs: ros_environment, bundled flac, numpy wheel

  • [voicevox, chaplus_ros, emotion_analyzer, gdrive_ros, google_chat_ros, influxdb_store, power_switching_tools_ros, respeaker_ros, ros_speech_recognition, rospatlite, sesame_ros, switchbot_ros] depend on ros_environment for ROS2 buildfarm The buildfarm builds each package with only its own build dependencies, so without ros_environment $ROS_VERSION is empty and CMakeLists.txt takes the ROS1 branch (same as jsk_common#1835). voicevox also guesses ROS_VERSION from AMENT_PREFIX_PATH when it is unset. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>

  • Merge branch 'master' into fix_hoya

  • Merge branch 'master' into voicevox-ros1-ros2

  • AMENT_IGNORE: do not add AMENT_IGNORE to packages already ported to ROS2 chaplus_ros, emotion_analyzer, gdrive_ros, google_chat_ros, influxdb_store, power_switching_tools_ros, respeaker_ros, rospatlite, sesame_ros and switchbot_ros are already ROS2 packages on master, so this PR must not AMENT_IGNORE them. Also remove ros_speech_recognition/AMENT_IGNORE, as this PR ports it to ROS2. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>

  • Merge branch 'master' into ros2-speech-recognition-only

  • Merge pull request #575 from k-okada/ros2-support Add ROS2 (jazzy) support to chaplus_ros, emotion_analyzer, gdrive_ros, google_chat_ros, influxdb_store, power_switching_tools_ros, respeaker_ros, rospatlite, sesame_ros, switchbot_ros

  • AMENT_IGNORE packages ported to ROS2 in jsk-ros-pkg/jsk_3rdparty#575 chaplus_ros, emotion_analyzer, gdrive_ros, google_chat_ros, influxdb_store, power_switching_tools_ros, rospatlite, sesame_ros and switchbot_ros are ROS1 only here, so the ROS2 CI skips them until #575. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>

  • [influxdb_store] add ROS2 support Single package.xml/CMakeLists.txt branched on $ROS_VERSION, same as chaplus_ros and jsk_common's ROS2-ported packages.

    - CMakeLists.txt: the ROS2 block is prepended and the ROS1 original

File truncated at 100 lines see the full file

Dependant Packages

Name Deps
eus_teleop

Launch files

  • launch/fetch_battery_logger.launch
      • host
      • port
      • database
      • battery_states_topic
  • launch/influxdb_logger.launch
      • host
      • port
      • database
      • launch_joint_states_logger [default: true]
      • launch_map_transform_logger [default: true]
      • launch_base_transform_logger [default: true]
      • launch_network_states_logger [default: true]
      • joint_states_topic [default: /joint_states]
      • map_frame_id [default: map]
      • base_frame_id [default: base_link]
      • network_states_transmit_topic [default: /$(arg database)/wlan0/transmit]
      • network_states_receive_topic [default: /$(arg database)/wlan0/receive]
  • launch/pr2_battery_logger.launch
      • host
      • port
      • database
      • battery_states_topic
  • sample/baxter_influxdb_logger.launch
      • host [default: localhost]
      • port [default: 8086]
      • robot_name [default: baxter]
      • database [default: $(arg robot_name)]
      • joint_states_topic [default: /robot/joint_states]
      • base_frame_id [default: base]
  • sample/fetch_influxdb_logger.launch
      • host [default: localhost]
      • port [default: 8086]
      • robot_name [default: fetch15]
      • database [default: $(arg robot_name)]
      • joint_states_topic [default: /joint_states]
      • battery_states_topic [default: /battery_state]
      • map_frame_id [default: map]
      • base_frame_id [default: base_link]
      • network_states_transmit_topic [default: /$(arg robot_name)/wlan0/transmit]
      • network_states_receive_topic [default: /$(arg robot_name)/wlan0/receive]
  • sample/pr2_influxdb_logger.launch
      • host [default: localhost]
      • port [default: 8086]
      • robot_name [default: pr1040]
      • database [default: $(arg robot_name)]
      • joint_states_topic [default: /joint_states]
      • battery_states_topic [default: /battery/server2]
      • map_frame_id [default: map]
      • base_frame_id [default: base_footprint]
      • network_states_transmit_topic [default: /$(arg robot_name)/wan0/transmit]
      • network_states_receive_topic [default: /$(arg robot_name)/wan0/receive]

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged influxdb_store at Robotics Stack Exchange