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

rospatlite

Additional Links

Maintainers

  • Takuya Nakaoka
  • Ryohei Ueda

Authors

  • Takuya Nakaoka

rospatlite

A ROS driver of a network PATLITE signal tower (a LAN-controlled tower such as NH-SPL, with its PHN command over TCP), to switch its red, yellow, green, blue and white lights and its buzzer from topics.

Requirements

A PATLITE with a LAN interface, reachable over TCP (port 10000, the default of the PHN command).

  1. Connect the PATLITE with your computer directly.
  2. Set the IP address of your computer to 192.168.10.x (the PATLITE has 192.168.10.1 by default).
  3. Open http://192.168.10.1/index.htm with your web browser and set up the network (IP address, and the PHN command on TCP port 10000). Please see the manual for details.

Usage

The launch file starts the node with the name patlite, so the topics are /patlite/set/*. Its argument IP (default 10.68.0.10, the address in JSK) is the address of the PATLITE.

ROS 2

ros2 launch rospatlite patlite.launch.xml IP:=192.168.10.1
# or
ros2 run rospatlite patlite_node.py --ros-args -r __node:=patlite -p host:=192.168.10.1

ros2 topic pub --once /patlite/set/red std_msgs/msg/Int8 '{data: 1}'     # red light on
ros2 topic pub --once /patlite/set/yellow std_msgs/msg/Int8 '{data: 2}'  # yellow light flashes
ros2 topic pub --once /patlite/set/buzzer std_msgs/msg/Int8 '{data: 1}'  # buzzer on
ros2 topic pub --once /patlite/set/buzzer std_msgs/msg/Int8 '{data: 0}'  # buzzer off

ROS 1

roslaunch rospatlite patlite.launch IP:=192.168.10.1

rostopic pub -1 /patlite/set/red std_msgs/Int8 1     # red light on
rostopic pub -1 /patlite/set/yellow std_msgs/Int8 2  # yellow light flashes
rostopic pub -1 /patlite/set/buzzer std_msgs/Int8 1  # buzzer on
rostopic pub -1 /patlite/set/buzzer std_msgs/Int8 0  # buzzer off

Without a PATLITE

Each change of the state is sent as a new TCP connection to ~host:~port, with the 6 bytes 58 58 53 00 00 06 followed by the 6 states (red, yellow, green, blue, white, buzzer; 09 is “no change”). To see them without a device, run a dummy server which prints them and answers ACK (06), and give host:=127.0.0.1:

python3 -c "
import socket
s = socket.socket(); s.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
s.bind(('127.0.0.1', 10000)); s.listen(1)
while True:
    c, _ = s.accept(); print(c.recv(512).hex(' ')); c.sendall(b'\x06'); c.close()
"

rospatlite demo

Interface

patlite_node.py

Subscribed topics (std_msgs/Int8):

Topic Values
~set/red, ~set/yellow, ~set/green, ~set/blue, ~set/white 0: off, 1: on, 2: flash pattern 1, 3: flash pattern 2
~set/buzzer 0: off, 1 to 4: buzzer patterns 1 to 4

A value other than 0 to 4 leaves the state as it is. The node sends the new state every 0.1 s when a message has come; the other lights and the buzzer keep their states.

Parameters:

Parameter Type Default  
~host string 10.68.0.10 Host name or IP address of the PATLITE
~port int 10000 TCP port of the PATLITE
~timeout double 0.5 Timeout [s] of the socket

patlite.py is the Python module of the protocol (Patlite, PatliteState); run alone, it turns on the red, yellow and green lights of the PATLITE at 10.68.0.10.

CHANGELOG

Changelog for package rospatlite

3.0.2 (2026-11-26)

  • Merge pull request #594 from k-okada/fix-error-handling
  • rospatlite: decode socket reply so ACK check works on Python 3 Patlite.write()/clear() compare the reply of socket.recv() with the str ACK 'x06'. On Python 3 recv() returns bytes, so b'x06' != 'x06' and every command was reported as a failure; read() likewise built a PatliteState from bytes, which then broke code2int() and __repr_(). Receive through a small _recv() helper that decodes bytes as latin-1 (the same codec already used for sendall()). On Python 2 recv() returns str, which is passed through unchanged, so the ROS 1 / Python 2 behavior is exactly as before. Checked with a dummy TCP server on 127.0.0.1: write()/clear() now return True and read() returns the right state on Python 3; Python 2 results are identical before and after. 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
  • rospatlite: add a demo GIF to README.md A terminal recording on ROS 2 jazzy without a PATLITE: the dummy TCP server of the README prints the bytes which patlite_node.py sends for the messages on /patlite/set/{red,yellow,buzzer}. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>> Claude-Session: https://claude.ai/code/session_01Xo6jRt2Rcht9sQS6ms6A4p
  • rospatlite: 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>>
  • rospatlite: fill the {organization} placeholder in LICENSE Use "the copyright holder", as in the BSD 3-Clause template (ros/rosdistro#55247 review). 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>>

File truncated at 100 lines see the full file

Package Dependencies

System Dependencies

No direct system dependencies.

Dependant Packages

No known dependants.

Launch files

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged rospatlite 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

rospatlite

Additional Links

Maintainers

  • Takuya Nakaoka
  • Ryohei Ueda

Authors

  • Takuya Nakaoka

rospatlite

A ROS driver of a network PATLITE signal tower (a LAN-controlled tower such as NH-SPL, with its PHN command over TCP), to switch its red, yellow, green, blue and white lights and its buzzer from topics.

Requirements

A PATLITE with a LAN interface, reachable over TCP (port 10000, the default of the PHN command).

  1. Connect the PATLITE with your computer directly.
  2. Set the IP address of your computer to 192.168.10.x (the PATLITE has 192.168.10.1 by default).
  3. Open http://192.168.10.1/index.htm with your web browser and set up the network (IP address, and the PHN command on TCP port 10000). Please see the manual for details.

Usage

The launch file starts the node with the name patlite, so the topics are /patlite/set/*. Its argument IP (default 10.68.0.10, the address in JSK) is the address of the PATLITE.

ROS 2

ros2 launch rospatlite patlite.launch.xml IP:=192.168.10.1
# or
ros2 run rospatlite patlite_node.py --ros-args -r __node:=patlite -p host:=192.168.10.1

ros2 topic pub --once /patlite/set/red std_msgs/msg/Int8 '{data: 1}'     # red light on
ros2 topic pub --once /patlite/set/yellow std_msgs/msg/Int8 '{data: 2}'  # yellow light flashes
ros2 topic pub --once /patlite/set/buzzer std_msgs/msg/Int8 '{data: 1}'  # buzzer on
ros2 topic pub --once /patlite/set/buzzer std_msgs/msg/Int8 '{data: 0}'  # buzzer off

ROS 1

roslaunch rospatlite patlite.launch IP:=192.168.10.1

rostopic pub -1 /patlite/set/red std_msgs/Int8 1     # red light on
rostopic pub -1 /patlite/set/yellow std_msgs/Int8 2  # yellow light flashes
rostopic pub -1 /patlite/set/buzzer std_msgs/Int8 1  # buzzer on
rostopic pub -1 /patlite/set/buzzer std_msgs/Int8 0  # buzzer off

Without a PATLITE

Each change of the state is sent as a new TCP connection to ~host:~port, with the 6 bytes 58 58 53 00 00 06 followed by the 6 states (red, yellow, green, blue, white, buzzer; 09 is “no change”). To see them without a device, run a dummy server which prints them and answers ACK (06), and give host:=127.0.0.1:

python3 -c "
import socket
s = socket.socket(); s.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
s.bind(('127.0.0.1', 10000)); s.listen(1)
while True:
    c, _ = s.accept(); print(c.recv(512).hex(' ')); c.sendall(b'\x06'); c.close()
"

rospatlite demo

Interface

patlite_node.py

Subscribed topics (std_msgs/Int8):

Topic Values
~set/red, ~set/yellow, ~set/green, ~set/blue, ~set/white 0: off, 1: on, 2: flash pattern 1, 3: flash pattern 2
~set/buzzer 0: off, 1 to 4: buzzer patterns 1 to 4

A value other than 0 to 4 leaves the state as it is. The node sends the new state every 0.1 s when a message has come; the other lights and the buzzer keep their states.

Parameters:

Parameter Type Default  
~host string 10.68.0.10 Host name or IP address of the PATLITE
~port int 10000 TCP port of the PATLITE
~timeout double 0.5 Timeout [s] of the socket

patlite.py is the Python module of the protocol (Patlite, PatliteState); run alone, it turns on the red, yellow and green lights of the PATLITE at 10.68.0.10.

CHANGELOG

Changelog for package rospatlite

3.0.2 (2026-11-26)

  • Merge pull request #594 from k-okada/fix-error-handling
  • rospatlite: decode socket reply so ACK check works on Python 3 Patlite.write()/clear() compare the reply of socket.recv() with the str ACK 'x06'. On Python 3 recv() returns bytes, so b'x06' != 'x06' and every command was reported as a failure; read() likewise built a PatliteState from bytes, which then broke code2int() and __repr_(). Receive through a small _recv() helper that decodes bytes as latin-1 (the same codec already used for sendall()). On Python 2 recv() returns str, which is passed through unchanged, so the ROS 1 / Python 2 behavior is exactly as before. Checked with a dummy TCP server on 127.0.0.1: write()/clear() now return True and read() returns the right state on Python 3; Python 2 results are identical before and after. 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
  • rospatlite: add a demo GIF to README.md A terminal recording on ROS 2 jazzy without a PATLITE: the dummy TCP server of the README prints the bytes which patlite_node.py sends for the messages on /patlite/set/{red,yellow,buzzer}. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>> Claude-Session: https://claude.ai/code/session_01Xo6jRt2Rcht9sQS6ms6A4p
  • rospatlite: 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>>
  • rospatlite: fill the {organization} placeholder in LICENSE Use "the copyright holder", as in the BSD 3-Clause template (ros/rosdistro#55247 review). 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>>

File truncated at 100 lines see the full file

Package Dependencies

System Dependencies

No direct system dependencies.

Dependant Packages

No known dependants.

Launch files

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged rospatlite 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

rospatlite

Additional Links

Maintainers

  • Takuya Nakaoka
  • Ryohei Ueda

Authors

  • Takuya Nakaoka

rospatlite

A ROS driver of a network PATLITE signal tower (a LAN-controlled tower such as NH-SPL, with its PHN command over TCP), to switch its red, yellow, green, blue and white lights and its buzzer from topics.

Requirements

A PATLITE with a LAN interface, reachable over TCP (port 10000, the default of the PHN command).

  1. Connect the PATLITE with your computer directly.
  2. Set the IP address of your computer to 192.168.10.x (the PATLITE has 192.168.10.1 by default).
  3. Open http://192.168.10.1/index.htm with your web browser and set up the network (IP address, and the PHN command on TCP port 10000). Please see the manual for details.

Usage

The launch file starts the node with the name patlite, so the topics are /patlite/set/*. Its argument IP (default 10.68.0.10, the address in JSK) is the address of the PATLITE.

ROS 2

ros2 launch rospatlite patlite.launch.xml IP:=192.168.10.1
# or
ros2 run rospatlite patlite_node.py --ros-args -r __node:=patlite -p host:=192.168.10.1

ros2 topic pub --once /patlite/set/red std_msgs/msg/Int8 '{data: 1}'     # red light on
ros2 topic pub --once /patlite/set/yellow std_msgs/msg/Int8 '{data: 2}'  # yellow light flashes
ros2 topic pub --once /patlite/set/buzzer std_msgs/msg/Int8 '{data: 1}'  # buzzer on
ros2 topic pub --once /patlite/set/buzzer std_msgs/msg/Int8 '{data: 0}'  # buzzer off

ROS 1

roslaunch rospatlite patlite.launch IP:=192.168.10.1

rostopic pub -1 /patlite/set/red std_msgs/Int8 1     # red light on
rostopic pub -1 /patlite/set/yellow std_msgs/Int8 2  # yellow light flashes
rostopic pub -1 /patlite/set/buzzer std_msgs/Int8 1  # buzzer on
rostopic pub -1 /patlite/set/buzzer std_msgs/Int8 0  # buzzer off

Without a PATLITE

Each change of the state is sent as a new TCP connection to ~host:~port, with the 6 bytes 58 58 53 00 00 06 followed by the 6 states (red, yellow, green, blue, white, buzzer; 09 is “no change”). To see them without a device, run a dummy server which prints them and answers ACK (06), and give host:=127.0.0.1:

python3 -c "
import socket
s = socket.socket(); s.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
s.bind(('127.0.0.1', 10000)); s.listen(1)
while True:
    c, _ = s.accept(); print(c.recv(512).hex(' ')); c.sendall(b'\x06'); c.close()
"

rospatlite demo

Interface

patlite_node.py

Subscribed topics (std_msgs/Int8):

Topic Values
~set/red, ~set/yellow, ~set/green, ~set/blue, ~set/white 0: off, 1: on, 2: flash pattern 1, 3: flash pattern 2
~set/buzzer 0: off, 1 to 4: buzzer patterns 1 to 4

A value other than 0 to 4 leaves the state as it is. The node sends the new state every 0.1 s when a message has come; the other lights and the buzzer keep their states.

Parameters:

Parameter Type Default  
~host string 10.68.0.10 Host name or IP address of the PATLITE
~port int 10000 TCP port of the PATLITE
~timeout double 0.5 Timeout [s] of the socket

patlite.py is the Python module of the protocol (Patlite, PatliteState); run alone, it turns on the red, yellow and green lights of the PATLITE at 10.68.0.10.

CHANGELOG

Changelog for package rospatlite

3.0.2 (2026-11-26)

  • Merge pull request #594 from k-okada/fix-error-handling
  • rospatlite: decode socket reply so ACK check works on Python 3 Patlite.write()/clear() compare the reply of socket.recv() with the str ACK 'x06'. On Python 3 recv() returns bytes, so b'x06' != 'x06' and every command was reported as a failure; read() likewise built a PatliteState from bytes, which then broke code2int() and __repr_(). Receive through a small _recv() helper that decodes bytes as latin-1 (the same codec already used for sendall()). On Python 2 recv() returns str, which is passed through unchanged, so the ROS 1 / Python 2 behavior is exactly as before. Checked with a dummy TCP server on 127.0.0.1: write()/clear() now return True and read() returns the right state on Python 3; Python 2 results are identical before and after. 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
  • rospatlite: add a demo GIF to README.md A terminal recording on ROS 2 jazzy without a PATLITE: the dummy TCP server of the README prints the bytes which patlite_node.py sends for the messages on /patlite/set/{red,yellow,buzzer}. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>> Claude-Session: https://claude.ai/code/session_01Xo6jRt2Rcht9sQS6ms6A4p
  • rospatlite: 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>>
  • rospatlite: fill the {organization} placeholder in LICENSE Use "the copyright holder", as in the BSD 3-Clause template (ros/rosdistro#55247 review). 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>>

File truncated at 100 lines see the full file

Package Dependencies

System Dependencies

No direct system dependencies.

Dependant Packages

No known dependants.

Launch files

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged rospatlite 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

rospatlite

Additional Links

Maintainers

  • Takuya Nakaoka
  • Ryohei Ueda

Authors

  • Takuya Nakaoka

rospatlite

A ROS driver of a network PATLITE signal tower (a LAN-controlled tower such as NH-SPL, with its PHN command over TCP), to switch its red, yellow, green, blue and white lights and its buzzer from topics.

Requirements

A PATLITE with a LAN interface, reachable over TCP (port 10000, the default of the PHN command).

  1. Connect the PATLITE with your computer directly.
  2. Set the IP address of your computer to 192.168.10.x (the PATLITE has 192.168.10.1 by default).
  3. Open http://192.168.10.1/index.htm with your web browser and set up the network (IP address, and the PHN command on TCP port 10000). Please see the manual for details.

Usage

The launch file starts the node with the name patlite, so the topics are /patlite/set/*. Its argument IP (default 10.68.0.10, the address in JSK) is the address of the PATLITE.

ROS 2

ros2 launch rospatlite patlite.launch.xml IP:=192.168.10.1
# or
ros2 run rospatlite patlite_node.py --ros-args -r __node:=patlite -p host:=192.168.10.1

ros2 topic pub --once /patlite/set/red std_msgs/msg/Int8 '{data: 1}'     # red light on
ros2 topic pub --once /patlite/set/yellow std_msgs/msg/Int8 '{data: 2}'  # yellow light flashes
ros2 topic pub --once /patlite/set/buzzer std_msgs/msg/Int8 '{data: 1}'  # buzzer on
ros2 topic pub --once /patlite/set/buzzer std_msgs/msg/Int8 '{data: 0}'  # buzzer off

ROS 1

roslaunch rospatlite patlite.launch IP:=192.168.10.1

rostopic pub -1 /patlite/set/red std_msgs/Int8 1     # red light on
rostopic pub -1 /patlite/set/yellow std_msgs/Int8 2  # yellow light flashes
rostopic pub -1 /patlite/set/buzzer std_msgs/Int8 1  # buzzer on
rostopic pub -1 /patlite/set/buzzer std_msgs/Int8 0  # buzzer off

Without a PATLITE

Each change of the state is sent as a new TCP connection to ~host:~port, with the 6 bytes 58 58 53 00 00 06 followed by the 6 states (red, yellow, green, blue, white, buzzer; 09 is “no change”). To see them without a device, run a dummy server which prints them and answers ACK (06), and give host:=127.0.0.1:

python3 -c "
import socket
s = socket.socket(); s.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
s.bind(('127.0.0.1', 10000)); s.listen(1)
while True:
    c, _ = s.accept(); print(c.recv(512).hex(' ')); c.sendall(b'\x06'); c.close()
"

rospatlite demo

Interface

patlite_node.py

Subscribed topics (std_msgs/Int8):

Topic Values
~set/red, ~set/yellow, ~set/green, ~set/blue, ~set/white 0: off, 1: on, 2: flash pattern 1, 3: flash pattern 2
~set/buzzer 0: off, 1 to 4: buzzer patterns 1 to 4

A value other than 0 to 4 leaves the state as it is. The node sends the new state every 0.1 s when a message has come; the other lights and the buzzer keep their states.

Parameters:

Parameter Type Default  
~host string 10.68.0.10 Host name or IP address of the PATLITE
~port int 10000 TCP port of the PATLITE
~timeout double 0.5 Timeout [s] of the socket

patlite.py is the Python module of the protocol (Patlite, PatliteState); run alone, it turns on the red, yellow and green lights of the PATLITE at 10.68.0.10.

CHANGELOG

Changelog for package rospatlite

3.0.2 (2026-11-26)

  • Merge pull request #594 from k-okada/fix-error-handling
  • rospatlite: decode socket reply so ACK check works on Python 3 Patlite.write()/clear() compare the reply of socket.recv() with the str ACK 'x06'. On Python 3 recv() returns bytes, so b'x06' != 'x06' and every command was reported as a failure; read() likewise built a PatliteState from bytes, which then broke code2int() and __repr_(). Receive through a small _recv() helper that decodes bytes as latin-1 (the same codec already used for sendall()). On Python 2 recv() returns str, which is passed through unchanged, so the ROS 1 / Python 2 behavior is exactly as before. Checked with a dummy TCP server on 127.0.0.1: write()/clear() now return True and read() returns the right state on Python 3; Python 2 results are identical before and after. 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
  • rospatlite: add a demo GIF to README.md A terminal recording on ROS 2 jazzy without a PATLITE: the dummy TCP server of the README prints the bytes which patlite_node.py sends for the messages on /patlite/set/{red,yellow,buzzer}. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>> Claude-Session: https://claude.ai/code/session_01Xo6jRt2Rcht9sQS6ms6A4p
  • rospatlite: 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>>
  • rospatlite: fill the {organization} placeholder in LICENSE Use "the copyright holder", as in the BSD 3-Clause template (ros/rosdistro#55247 review). 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>>

File truncated at 100 lines see the full file

Package Dependencies

System Dependencies

No direct system dependencies.

Dependant Packages

No known dependants.

Launch files

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged rospatlite 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

rospatlite

Additional Links

Maintainers

  • Takuya Nakaoka
  • Ryohei Ueda

Authors

  • Takuya Nakaoka

rospatlite

A ROS driver of a network PATLITE signal tower (a LAN-controlled tower such as NH-SPL, with its PHN command over TCP), to switch its red, yellow, green, blue and white lights and its buzzer from topics.

Requirements

A PATLITE with a LAN interface, reachable over TCP (port 10000, the default of the PHN command).

  1. Connect the PATLITE with your computer directly.
  2. Set the IP address of your computer to 192.168.10.x (the PATLITE has 192.168.10.1 by default).
  3. Open http://192.168.10.1/index.htm with your web browser and set up the network (IP address, and the PHN command on TCP port 10000). Please see the manual for details.

Usage

The launch file starts the node with the name patlite, so the topics are /patlite/set/*. Its argument IP (default 10.68.0.10, the address in JSK) is the address of the PATLITE.

ROS 2

ros2 launch rospatlite patlite.launch.xml IP:=192.168.10.1
# or
ros2 run rospatlite patlite_node.py --ros-args -r __node:=patlite -p host:=192.168.10.1

ros2 topic pub --once /patlite/set/red std_msgs/msg/Int8 '{data: 1}'     # red light on
ros2 topic pub --once /patlite/set/yellow std_msgs/msg/Int8 '{data: 2}'  # yellow light flashes
ros2 topic pub --once /patlite/set/buzzer std_msgs/msg/Int8 '{data: 1}'  # buzzer on
ros2 topic pub --once /patlite/set/buzzer std_msgs/msg/Int8 '{data: 0}'  # buzzer off

ROS 1

roslaunch rospatlite patlite.launch IP:=192.168.10.1

rostopic pub -1 /patlite/set/red std_msgs/Int8 1     # red light on
rostopic pub -1 /patlite/set/yellow std_msgs/Int8 2  # yellow light flashes
rostopic pub -1 /patlite/set/buzzer std_msgs/Int8 1  # buzzer on
rostopic pub -1 /patlite/set/buzzer std_msgs/Int8 0  # buzzer off

Without a PATLITE

Each change of the state is sent as a new TCP connection to ~host:~port, with the 6 bytes 58 58 53 00 00 06 followed by the 6 states (red, yellow, green, blue, white, buzzer; 09 is “no change”). To see them without a device, run a dummy server which prints them and answers ACK (06), and give host:=127.0.0.1:

python3 -c "
import socket
s = socket.socket(); s.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
s.bind(('127.0.0.1', 10000)); s.listen(1)
while True:
    c, _ = s.accept(); print(c.recv(512).hex(' ')); c.sendall(b'\x06'); c.close()
"

rospatlite demo

Interface

patlite_node.py

Subscribed topics (std_msgs/Int8):

Topic Values
~set/red, ~set/yellow, ~set/green, ~set/blue, ~set/white 0: off, 1: on, 2: flash pattern 1, 3: flash pattern 2
~set/buzzer 0: off, 1 to 4: buzzer patterns 1 to 4

A value other than 0 to 4 leaves the state as it is. The node sends the new state every 0.1 s when a message has come; the other lights and the buzzer keep their states.

Parameters:

Parameter Type Default  
~host string 10.68.0.10 Host name or IP address of the PATLITE
~port int 10000 TCP port of the PATLITE
~timeout double 0.5 Timeout [s] of the socket

patlite.py is the Python module of the protocol (Patlite, PatliteState); run alone, it turns on the red, yellow and green lights of the PATLITE at 10.68.0.10.

CHANGELOG

Changelog for package rospatlite

3.0.2 (2026-11-26)

  • Merge pull request #594 from k-okada/fix-error-handling
  • rospatlite: decode socket reply so ACK check works on Python 3 Patlite.write()/clear() compare the reply of socket.recv() with the str ACK 'x06'. On Python 3 recv() returns bytes, so b'x06' != 'x06' and every command was reported as a failure; read() likewise built a PatliteState from bytes, which then broke code2int() and __repr_(). Receive through a small _recv() helper that decodes bytes as latin-1 (the same codec already used for sendall()). On Python 2 recv() returns str, which is passed through unchanged, so the ROS 1 / Python 2 behavior is exactly as before. Checked with a dummy TCP server on 127.0.0.1: write()/clear() now return True and read() returns the right state on Python 3; Python 2 results are identical before and after. 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
  • rospatlite: add a demo GIF to README.md A terminal recording on ROS 2 jazzy without a PATLITE: the dummy TCP server of the README prints the bytes which patlite_node.py sends for the messages on /patlite/set/{red,yellow,buzzer}. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>> Claude-Session: https://claude.ai/code/session_01Xo6jRt2Rcht9sQS6ms6A4p
  • rospatlite: 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>>
  • rospatlite: fill the {organization} placeholder in LICENSE Use "the copyright holder", as in the BSD 3-Clause template (ros/rosdistro#55247 review). 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>>

File truncated at 100 lines see the full file

Package Dependencies

System Dependencies

No direct system dependencies.

Dependant Packages

No known dependants.

Launch files

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged rospatlite 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

rospatlite

Additional Links

Maintainers

  • Takuya Nakaoka
  • Ryohei Ueda

Authors

  • Takuya Nakaoka

rospatlite

A ROS driver of a network PATLITE signal tower (a LAN-controlled tower such as NH-SPL, with its PHN command over TCP), to switch its red, yellow, green, blue and white lights and its buzzer from topics.

Requirements

A PATLITE with a LAN interface, reachable over TCP (port 10000, the default of the PHN command).

  1. Connect the PATLITE with your computer directly.
  2. Set the IP address of your computer to 192.168.10.x (the PATLITE has 192.168.10.1 by default).
  3. Open http://192.168.10.1/index.htm with your web browser and set up the network (IP address, and the PHN command on TCP port 10000). Please see the manual for details.

Usage

The launch file starts the node with the name patlite, so the topics are /patlite/set/*. Its argument IP (default 10.68.0.10, the address in JSK) is the address of the PATLITE.

ROS 2

ros2 launch rospatlite patlite.launch.xml IP:=192.168.10.1
# or
ros2 run rospatlite patlite_node.py --ros-args -r __node:=patlite -p host:=192.168.10.1

ros2 topic pub --once /patlite/set/red std_msgs/msg/Int8 '{data: 1}'     # red light on
ros2 topic pub --once /patlite/set/yellow std_msgs/msg/Int8 '{data: 2}'  # yellow light flashes
ros2 topic pub --once /patlite/set/buzzer std_msgs/msg/Int8 '{data: 1}'  # buzzer on
ros2 topic pub --once /patlite/set/buzzer std_msgs/msg/Int8 '{data: 0}'  # buzzer off

ROS 1

roslaunch rospatlite patlite.launch IP:=192.168.10.1

rostopic pub -1 /patlite/set/red std_msgs/Int8 1     # red light on
rostopic pub -1 /patlite/set/yellow std_msgs/Int8 2  # yellow light flashes
rostopic pub -1 /patlite/set/buzzer std_msgs/Int8 1  # buzzer on
rostopic pub -1 /patlite/set/buzzer std_msgs/Int8 0  # buzzer off

Without a PATLITE

Each change of the state is sent as a new TCP connection to ~host:~port, with the 6 bytes 58 58 53 00 00 06 followed by the 6 states (red, yellow, green, blue, white, buzzer; 09 is “no change”). To see them without a device, run a dummy server which prints them and answers ACK (06), and give host:=127.0.0.1:

python3 -c "
import socket
s = socket.socket(); s.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
s.bind(('127.0.0.1', 10000)); s.listen(1)
while True:
    c, _ = s.accept(); print(c.recv(512).hex(' ')); c.sendall(b'\x06'); c.close()
"

rospatlite demo

Interface

patlite_node.py

Subscribed topics (std_msgs/Int8):

Topic Values
~set/red, ~set/yellow, ~set/green, ~set/blue, ~set/white 0: off, 1: on, 2: flash pattern 1, 3: flash pattern 2
~set/buzzer 0: off, 1 to 4: buzzer patterns 1 to 4

A value other than 0 to 4 leaves the state as it is. The node sends the new state every 0.1 s when a message has come; the other lights and the buzzer keep their states.

Parameters:

Parameter Type Default  
~host string 10.68.0.10 Host name or IP address of the PATLITE
~port int 10000 TCP port of the PATLITE
~timeout double 0.5 Timeout [s] of the socket

patlite.py is the Python module of the protocol (Patlite, PatliteState); run alone, it turns on the red, yellow and green lights of the PATLITE at 10.68.0.10.

CHANGELOG

Changelog for package rospatlite

3.0.2 (2026-11-26)

  • Merge pull request #594 from k-okada/fix-error-handling
  • rospatlite: decode socket reply so ACK check works on Python 3 Patlite.write()/clear() compare the reply of socket.recv() with the str ACK 'x06'. On Python 3 recv() returns bytes, so b'x06' != 'x06' and every command was reported as a failure; read() likewise built a PatliteState from bytes, which then broke code2int() and __repr_(). Receive through a small _recv() helper that decodes bytes as latin-1 (the same codec already used for sendall()). On Python 2 recv() returns str, which is passed through unchanged, so the ROS 1 / Python 2 behavior is exactly as before. Checked with a dummy TCP server on 127.0.0.1: write()/clear() now return True and read() returns the right state on Python 3; Python 2 results are identical before and after. 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
  • rospatlite: add a demo GIF to README.md A terminal recording on ROS 2 jazzy without a PATLITE: the dummy TCP server of the README prints the bytes which patlite_node.py sends for the messages on /patlite/set/{red,yellow,buzzer}. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>> Claude-Session: https://claude.ai/code/session_01Xo6jRt2Rcht9sQS6ms6A4p
  • rospatlite: 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>>
  • rospatlite: fill the {organization} placeholder in LICENSE Use "the copyright holder", as in the BSD 3-Clause template (ros/rosdistro#55247 review). 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>>

File truncated at 100 lines see the full file

Package Dependencies

System Dependencies

No direct system dependencies.

Dependant Packages

No known dependants.

Launch files

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged rospatlite 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

rospatlite

Additional Links

Maintainers

  • Takuya Nakaoka
  • Ryohei Ueda

Authors

  • Takuya Nakaoka

rospatlite

A ROS driver of a network PATLITE signal tower (a LAN-controlled tower such as NH-SPL, with its PHN command over TCP), to switch its red, yellow, green, blue and white lights and its buzzer from topics.

Requirements

A PATLITE with a LAN interface, reachable over TCP (port 10000, the default of the PHN command).

  1. Connect the PATLITE with your computer directly.
  2. Set the IP address of your computer to 192.168.10.x (the PATLITE has 192.168.10.1 by default).
  3. Open http://192.168.10.1/index.htm with your web browser and set up the network (IP address, and the PHN command on TCP port 10000). Please see the manual for details.

Usage

The launch file starts the node with the name patlite, so the topics are /patlite/set/*. Its argument IP (default 10.68.0.10, the address in JSK) is the address of the PATLITE.

ROS 2

ros2 launch rospatlite patlite.launch.xml IP:=192.168.10.1
# or
ros2 run rospatlite patlite_node.py --ros-args -r __node:=patlite -p host:=192.168.10.1

ros2 topic pub --once /patlite/set/red std_msgs/msg/Int8 '{data: 1}'     # red light on
ros2 topic pub --once /patlite/set/yellow std_msgs/msg/Int8 '{data: 2}'  # yellow light flashes
ros2 topic pub --once /patlite/set/buzzer std_msgs/msg/Int8 '{data: 1}'  # buzzer on
ros2 topic pub --once /patlite/set/buzzer std_msgs/msg/Int8 '{data: 0}'  # buzzer off

ROS 1

roslaunch rospatlite patlite.launch IP:=192.168.10.1

rostopic pub -1 /patlite/set/red std_msgs/Int8 1     # red light on
rostopic pub -1 /patlite/set/yellow std_msgs/Int8 2  # yellow light flashes
rostopic pub -1 /patlite/set/buzzer std_msgs/Int8 1  # buzzer on
rostopic pub -1 /patlite/set/buzzer std_msgs/Int8 0  # buzzer off

Without a PATLITE

Each change of the state is sent as a new TCP connection to ~host:~port, with the 6 bytes 58 58 53 00 00 06 followed by the 6 states (red, yellow, green, blue, white, buzzer; 09 is “no change”). To see them without a device, run a dummy server which prints them and answers ACK (06), and give host:=127.0.0.1:

python3 -c "
import socket
s = socket.socket(); s.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
s.bind(('127.0.0.1', 10000)); s.listen(1)
while True:
    c, _ = s.accept(); print(c.recv(512).hex(' ')); c.sendall(b'\x06'); c.close()
"

rospatlite demo

Interface

patlite_node.py

Subscribed topics (std_msgs/Int8):

Topic Values
~set/red, ~set/yellow, ~set/green, ~set/blue, ~set/white 0: off, 1: on, 2: flash pattern 1, 3: flash pattern 2
~set/buzzer 0: off, 1 to 4: buzzer patterns 1 to 4

A value other than 0 to 4 leaves the state as it is. The node sends the new state every 0.1 s when a message has come; the other lights and the buzzer keep their states.

Parameters:

Parameter Type Default  
~host string 10.68.0.10 Host name or IP address of the PATLITE
~port int 10000 TCP port of the PATLITE
~timeout double 0.5 Timeout [s] of the socket

patlite.py is the Python module of the protocol (Patlite, PatliteState); run alone, it turns on the red, yellow and green lights of the PATLITE at 10.68.0.10.

CHANGELOG

Changelog for package rospatlite

3.0.2 (2026-11-26)

  • Merge pull request #594 from k-okada/fix-error-handling
  • rospatlite: decode socket reply so ACK check works on Python 3 Patlite.write()/clear() compare the reply of socket.recv() with the str ACK 'x06'. On Python 3 recv() returns bytes, so b'x06' != 'x06' and every command was reported as a failure; read() likewise built a PatliteState from bytes, which then broke code2int() and __repr_(). Receive through a small _recv() helper that decodes bytes as latin-1 (the same codec already used for sendall()). On Python 2 recv() returns str, which is passed through unchanged, so the ROS 1 / Python 2 behavior is exactly as before. Checked with a dummy TCP server on 127.0.0.1: write()/clear() now return True and read() returns the right state on Python 3; Python 2 results are identical before and after. 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
  • rospatlite: add a demo GIF to README.md A terminal recording on ROS 2 jazzy without a PATLITE: the dummy TCP server of the README prints the bytes which patlite_node.py sends for the messages on /patlite/set/{red,yellow,buzzer}. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>> Claude-Session: https://claude.ai/code/session_01Xo6jRt2Rcht9sQS6ms6A4p
  • rospatlite: 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>>
  • rospatlite: fill the {organization} placeholder in LICENSE Use "the copyright holder", as in the BSD 3-Clause template (ros/rosdistro#55247 review). 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>>

File truncated at 100 lines see the full file

Package Dependencies

System Dependencies

No direct system dependencies.

Dependant Packages

No known dependants.

Launch files

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged rospatlite 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

rospatlite

Additional Links

Maintainers

  • Takuya Nakaoka
  • Ryohei Ueda

Authors

  • Takuya Nakaoka

rospatlite

A ROS driver of a network PATLITE signal tower (a LAN-controlled tower such as NH-SPL, with its PHN command over TCP), to switch its red, yellow, green, blue and white lights and its buzzer from topics.

Requirements

A PATLITE with a LAN interface, reachable over TCP (port 10000, the default of the PHN command).

  1. Connect the PATLITE with your computer directly.
  2. Set the IP address of your computer to 192.168.10.x (the PATLITE has 192.168.10.1 by default).
  3. Open http://192.168.10.1/index.htm with your web browser and set up the network (IP address, and the PHN command on TCP port 10000). Please see the manual for details.

Usage

The launch file starts the node with the name patlite, so the topics are /patlite/set/*. Its argument IP (default 10.68.0.10, the address in JSK) is the address of the PATLITE.

ROS 2

ros2 launch rospatlite patlite.launch.xml IP:=192.168.10.1
# or
ros2 run rospatlite patlite_node.py --ros-args -r __node:=patlite -p host:=192.168.10.1

ros2 topic pub --once /patlite/set/red std_msgs/msg/Int8 '{data: 1}'     # red light on
ros2 topic pub --once /patlite/set/yellow std_msgs/msg/Int8 '{data: 2}'  # yellow light flashes
ros2 topic pub --once /patlite/set/buzzer std_msgs/msg/Int8 '{data: 1}'  # buzzer on
ros2 topic pub --once /patlite/set/buzzer std_msgs/msg/Int8 '{data: 0}'  # buzzer off

ROS 1

roslaunch rospatlite patlite.launch IP:=192.168.10.1

rostopic pub -1 /patlite/set/red std_msgs/Int8 1     # red light on
rostopic pub -1 /patlite/set/yellow std_msgs/Int8 2  # yellow light flashes
rostopic pub -1 /patlite/set/buzzer std_msgs/Int8 1  # buzzer on
rostopic pub -1 /patlite/set/buzzer std_msgs/Int8 0  # buzzer off

Without a PATLITE

Each change of the state is sent as a new TCP connection to ~host:~port, with the 6 bytes 58 58 53 00 00 06 followed by the 6 states (red, yellow, green, blue, white, buzzer; 09 is “no change”). To see them without a device, run a dummy server which prints them and answers ACK (06), and give host:=127.0.0.1:

python3 -c "
import socket
s = socket.socket(); s.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
s.bind(('127.0.0.1', 10000)); s.listen(1)
while True:
    c, _ = s.accept(); print(c.recv(512).hex(' ')); c.sendall(b'\x06'); c.close()
"

rospatlite demo

Interface

patlite_node.py

Subscribed topics (std_msgs/Int8):

Topic Values
~set/red, ~set/yellow, ~set/green, ~set/blue, ~set/white 0: off, 1: on, 2: flash pattern 1, 3: flash pattern 2
~set/buzzer 0: off, 1 to 4: buzzer patterns 1 to 4

A value other than 0 to 4 leaves the state as it is. The node sends the new state every 0.1 s when a message has come; the other lights and the buzzer keep their states.

Parameters:

Parameter Type Default  
~host string 10.68.0.10 Host name or IP address of the PATLITE
~port int 10000 TCP port of the PATLITE
~timeout double 0.5 Timeout [s] of the socket

patlite.py is the Python module of the protocol (Patlite, PatliteState); run alone, it turns on the red, yellow and green lights of the PATLITE at 10.68.0.10.

CHANGELOG

Changelog for package rospatlite

3.0.2 (2026-11-26)

  • Merge pull request #594 from k-okada/fix-error-handling
  • rospatlite: decode socket reply so ACK check works on Python 3 Patlite.write()/clear() compare the reply of socket.recv() with the str ACK 'x06'. On Python 3 recv() returns bytes, so b'x06' != 'x06' and every command was reported as a failure; read() likewise built a PatliteState from bytes, which then broke code2int() and __repr_(). Receive through a small _recv() helper that decodes bytes as latin-1 (the same codec already used for sendall()). On Python 2 recv() returns str, which is passed through unchanged, so the ROS 1 / Python 2 behavior is exactly as before. Checked with a dummy TCP server on 127.0.0.1: write()/clear() now return True and read() returns the right state on Python 3; Python 2 results are identical before and after. 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
  • rospatlite: add a demo GIF to README.md A terminal recording on ROS 2 jazzy without a PATLITE: the dummy TCP server of the README prints the bytes which patlite_node.py sends for the messages on /patlite/set/{red,yellow,buzzer}. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>> Claude-Session: https://claude.ai/code/session_01Xo6jRt2Rcht9sQS6ms6A4p
  • rospatlite: 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>>
  • rospatlite: fill the {organization} placeholder in LICENSE Use "the copyright holder", as in the BSD 3-Clause template (ros/rosdistro#55247 review). 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>>

File truncated at 100 lines see the full file

Package Dependencies

System Dependencies

No direct system dependencies.

Dependant Packages

No known dependants.

Launch files

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged rospatlite 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

rospatlite

Additional Links

Maintainers

  • Takuya Nakaoka
  • Ryohei Ueda

Authors

  • Takuya Nakaoka

rospatlite

A ROS driver of a network PATLITE signal tower (a LAN-controlled tower such as NH-SPL, with its PHN command over TCP), to switch its red, yellow, green, blue and white lights and its buzzer from topics.

Requirements

A PATLITE with a LAN interface, reachable over TCP (port 10000, the default of the PHN command).

  1. Connect the PATLITE with your computer directly.
  2. Set the IP address of your computer to 192.168.10.x (the PATLITE has 192.168.10.1 by default).
  3. Open http://192.168.10.1/index.htm with your web browser and set up the network (IP address, and the PHN command on TCP port 10000). Please see the manual for details.

Usage

The launch file starts the node with the name patlite, so the topics are /patlite/set/*. Its argument IP (default 10.68.0.10, the address in JSK) is the address of the PATLITE.

ROS 2

ros2 launch rospatlite patlite.launch.xml IP:=192.168.10.1
# or
ros2 run rospatlite patlite_node.py --ros-args -r __node:=patlite -p host:=192.168.10.1

ros2 topic pub --once /patlite/set/red std_msgs/msg/Int8 '{data: 1}'     # red light on
ros2 topic pub --once /patlite/set/yellow std_msgs/msg/Int8 '{data: 2}'  # yellow light flashes
ros2 topic pub --once /patlite/set/buzzer std_msgs/msg/Int8 '{data: 1}'  # buzzer on
ros2 topic pub --once /patlite/set/buzzer std_msgs/msg/Int8 '{data: 0}'  # buzzer off

ROS 1

roslaunch rospatlite patlite.launch IP:=192.168.10.1

rostopic pub -1 /patlite/set/red std_msgs/Int8 1     # red light on
rostopic pub -1 /patlite/set/yellow std_msgs/Int8 2  # yellow light flashes
rostopic pub -1 /patlite/set/buzzer std_msgs/Int8 1  # buzzer on
rostopic pub -1 /patlite/set/buzzer std_msgs/Int8 0  # buzzer off

Without a PATLITE

Each change of the state is sent as a new TCP connection to ~host:~port, with the 6 bytes 58 58 53 00 00 06 followed by the 6 states (red, yellow, green, blue, white, buzzer; 09 is “no change”). To see them without a device, run a dummy server which prints them and answers ACK (06), and give host:=127.0.0.1:

python3 -c "
import socket
s = socket.socket(); s.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
s.bind(('127.0.0.1', 10000)); s.listen(1)
while True:
    c, _ = s.accept(); print(c.recv(512).hex(' ')); c.sendall(b'\x06'); c.close()
"

rospatlite demo

Interface

patlite_node.py

Subscribed topics (std_msgs/Int8):

Topic Values
~set/red, ~set/yellow, ~set/green, ~set/blue, ~set/white 0: off, 1: on, 2: flash pattern 1, 3: flash pattern 2
~set/buzzer 0: off, 1 to 4: buzzer patterns 1 to 4

A value other than 0 to 4 leaves the state as it is. The node sends the new state every 0.1 s when a message has come; the other lights and the buzzer keep their states.

Parameters:

Parameter Type Default  
~host string 10.68.0.10 Host name or IP address of the PATLITE
~port int 10000 TCP port of the PATLITE
~timeout double 0.5 Timeout [s] of the socket

patlite.py is the Python module of the protocol (Patlite, PatliteState); run alone, it turns on the red, yellow and green lights of the PATLITE at 10.68.0.10.

CHANGELOG

Changelog for package rospatlite

3.0.2 (2026-11-26)

  • Merge pull request #594 from k-okada/fix-error-handling
  • rospatlite: decode socket reply so ACK check works on Python 3 Patlite.write()/clear() compare the reply of socket.recv() with the str ACK 'x06'. On Python 3 recv() returns bytes, so b'x06' != 'x06' and every command was reported as a failure; read() likewise built a PatliteState from bytes, which then broke code2int() and __repr_(). Receive through a small _recv() helper that decodes bytes as latin-1 (the same codec already used for sendall()). On Python 2 recv() returns str, which is passed through unchanged, so the ROS 1 / Python 2 behavior is exactly as before. Checked with a dummy TCP server on 127.0.0.1: write()/clear() now return True and read() returns the right state on Python 3; Python 2 results are identical before and after. 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
  • rospatlite: add a demo GIF to README.md A terminal recording on ROS 2 jazzy without a PATLITE: the dummy TCP server of the README prints the bytes which patlite_node.py sends for the messages on /patlite/set/{red,yellow,buzzer}. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>> Claude-Session: https://claude.ai/code/session_01Xo6jRt2Rcht9sQS6ms6A4p
  • rospatlite: 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>>
  • rospatlite: fill the {organization} placeholder in LICENSE Use "the copyright holder", as in the BSD 3-Clause template (ros/rosdistro#55247 review). 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>>

File truncated at 100 lines see the full file

Package Dependencies

System Dependencies

No direct system dependencies.

Dependant Packages

No known dependants.

Launch files

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged rospatlite 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

rospatlite

Additional Links

Maintainers

  • Takuya Nakaoka
  • Ryohei Ueda

Authors

  • Takuya Nakaoka

rospatlite

A ROS driver of a network PATLITE signal tower (a LAN-controlled tower such as NH-SPL, with its PHN command over TCP), to switch its red, yellow, green, blue and white lights and its buzzer from topics.

Requirements

A PATLITE with a LAN interface, reachable over TCP (port 10000, the default of the PHN command).

  1. Connect the PATLITE with your computer directly.
  2. Set the IP address of your computer to 192.168.10.x (the PATLITE has 192.168.10.1 by default).
  3. Open http://192.168.10.1/index.htm with your web browser and set up the network (IP address, and the PHN command on TCP port 10000). Please see the manual for details.

Usage

The launch file starts the node with the name patlite, so the topics are /patlite/set/*. Its argument IP (default 10.68.0.10, the address in JSK) is the address of the PATLITE.

ROS 2

ros2 launch rospatlite patlite.launch.xml IP:=192.168.10.1
# or
ros2 run rospatlite patlite_node.py --ros-args -r __node:=patlite -p host:=192.168.10.1

ros2 topic pub --once /patlite/set/red std_msgs/msg/Int8 '{data: 1}'     # red light on
ros2 topic pub --once /patlite/set/yellow std_msgs/msg/Int8 '{data: 2}'  # yellow light flashes
ros2 topic pub --once /patlite/set/buzzer std_msgs/msg/Int8 '{data: 1}'  # buzzer on
ros2 topic pub --once /patlite/set/buzzer std_msgs/msg/Int8 '{data: 0}'  # buzzer off

ROS 1

roslaunch rospatlite patlite.launch IP:=192.168.10.1

rostopic pub -1 /patlite/set/red std_msgs/Int8 1     # red light on
rostopic pub -1 /patlite/set/yellow std_msgs/Int8 2  # yellow light flashes
rostopic pub -1 /patlite/set/buzzer std_msgs/Int8 1  # buzzer on
rostopic pub -1 /patlite/set/buzzer std_msgs/Int8 0  # buzzer off

Without a PATLITE

Each change of the state is sent as a new TCP connection to ~host:~port, with the 6 bytes 58 58 53 00 00 06 followed by the 6 states (red, yellow, green, blue, white, buzzer; 09 is “no change”). To see them without a device, run a dummy server which prints them and answers ACK (06), and give host:=127.0.0.1:

python3 -c "
import socket
s = socket.socket(); s.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
s.bind(('127.0.0.1', 10000)); s.listen(1)
while True:
    c, _ = s.accept(); print(c.recv(512).hex(' ')); c.sendall(b'\x06'); c.close()
"

rospatlite demo

Interface

patlite_node.py

Subscribed topics (std_msgs/Int8):

Topic Values
~set/red, ~set/yellow, ~set/green, ~set/blue, ~set/white 0: off, 1: on, 2: flash pattern 1, 3: flash pattern 2
~set/buzzer 0: off, 1 to 4: buzzer patterns 1 to 4

A value other than 0 to 4 leaves the state as it is. The node sends the new state every 0.1 s when a message has come; the other lights and the buzzer keep their states.

Parameters:

Parameter Type Default  
~host string 10.68.0.10 Host name or IP address of the PATLITE
~port int 10000 TCP port of the PATLITE
~timeout double 0.5 Timeout [s] of the socket

patlite.py is the Python module of the protocol (Patlite, PatliteState); run alone, it turns on the red, yellow and green lights of the PATLITE at 10.68.0.10.

CHANGELOG

Changelog for package rospatlite

3.0.2 (2026-11-26)

  • Merge pull request #594 from k-okada/fix-error-handling
  • rospatlite: decode socket reply so ACK check works on Python 3 Patlite.write()/clear() compare the reply of socket.recv() with the str ACK 'x06'. On Python 3 recv() returns bytes, so b'x06' != 'x06' and every command was reported as a failure; read() likewise built a PatliteState from bytes, which then broke code2int() and __repr_(). Receive through a small _recv() helper that decodes bytes as latin-1 (the same codec already used for sendall()). On Python 2 recv() returns str, which is passed through unchanged, so the ROS 1 / Python 2 behavior is exactly as before. Checked with a dummy TCP server on 127.0.0.1: write()/clear() now return True and read() returns the right state on Python 3; Python 2 results are identical before and after. 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
  • rospatlite: add a demo GIF to README.md A terminal recording on ROS 2 jazzy without a PATLITE: the dummy TCP server of the README prints the bytes which patlite_node.py sends for the messages on /patlite/set/{red,yellow,buzzer}. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>> Claude-Session: https://claude.ai/code/session_01Xo6jRt2Rcht9sQS6ms6A4p
  • rospatlite: 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>>
  • rospatlite: fill the {organization} placeholder in LICENSE Use "the copyright holder", as in the BSD 3-Clause template (ros/rosdistro#55247 review). 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>>

File truncated at 100 lines see the full file

Package Dependencies

System Dependencies

No direct system dependencies.

Dependant Packages

No known dependants.

Launch files

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged rospatlite at Robotics Stack Exchange