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

Package Summary

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

Repository Summary

Checkout URI https://github.com/jsk-ros-pkg/jsk_3rdparty.git
VCS Type git
VCS Version master
Last Updated 2026-11-18
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.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>>

  • [rospatlite] 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 is wrapped in else()/endif() unchanged. The installed ROS2 copies of patlite_node.py/patlite.py get a python3 shebang.

    - package.xml: format 1 -> 3 (needed for condition=), so run_depend becomes exec_depend.

    - patlite_node.py: the original rospy code is kept as is for ROS1 users (run() and the __main_ block, used when jsk_ros1_ros2_compat, i.e. jsk_common >= 3.0, is not available), and run_compat() is added next to it as the same loop written with jsk_ros1_ros2_compat's rospy_rclpy_compat (init_node, get_param, create_subscription, log*, is_shutdown, spin_once, shutdown), which runs on both ROS1 and ROS2 when jsk_ros1_ros2_compat is available. Only the imports (rospy and the roslib.load_manifest() fallback do not exist on ROS2) and the __main__ condition of the original lines change.

    - patlite.py: encode the command strings before socket.sendall(); on python3 (noetic, ROS-O, ROS2) sending str raised TypeError.

    • launch/patlite.launch.xml: ROS2 counterpart of patlite.launch.

    - The ROS2 scripts are installed with jsk_ros1_ros2_compat's jsk_ros1_ros2_compat_install_python() (python3 shebang), from jsk-ros-pkg/jsk_common#1832, as a ROS2-only buildtool_depend (>= 3.0.2) that stays off rosidl's build dependencies. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>

  • Contributors: Kei Okada

2.1.31 (2025-05-13)

2.1.30 (2025-05-10)

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 jazzy showing lunar. Known supported distros are highlighted in the buttons above.

Package Summary

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

Repository Summary

Checkout URI https://github.com/jsk-ros-pkg/jsk_3rdparty.git
VCS Type git
VCS Version master
Last Updated 2026-11-18
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.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>>

  • [rospatlite] 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 is wrapped in else()/endif() unchanged. The installed ROS2 copies of patlite_node.py/patlite.py get a python3 shebang.

    - package.xml: format 1 -> 3 (needed for condition=), so run_depend becomes exec_depend.

    - patlite_node.py: the original rospy code is kept as is for ROS1 users (run() and the __main_ block, used when jsk_ros1_ros2_compat, i.e. jsk_common >= 3.0, is not available), and run_compat() is added next to it as the same loop written with jsk_ros1_ros2_compat's rospy_rclpy_compat (init_node, get_param, create_subscription, log*, is_shutdown, spin_once, shutdown), which runs on both ROS1 and ROS2 when jsk_ros1_ros2_compat is available. Only the imports (rospy and the roslib.load_manifest() fallback do not exist on ROS2) and the __main__ condition of the original lines change.

    - patlite.py: encode the command strings before socket.sendall(); on python3 (noetic, ROS-O, ROS2) sending str raised TypeError.

    • launch/patlite.launch.xml: ROS2 counterpart of patlite.launch.

    - The ROS2 scripts are installed with jsk_ros1_ros2_compat's jsk_ros1_ros2_compat_install_python() (python3 shebang), from jsk-ros-pkg/jsk_common#1832, as a ROS2-only buildtool_depend (>= 3.0.2) that stays off rosidl's build dependencies. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>

  • Contributors: Kei Okada

2.1.31 (2025-05-13)

2.1.30 (2025-05-10)

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 kilted showing lunar. Known supported distros are highlighted in the buttons above.

Package Summary

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

Repository Summary

Checkout URI https://github.com/jsk-ros-pkg/jsk_3rdparty.git
VCS Type git
VCS Version master
Last Updated 2026-11-18
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.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>>

  • [rospatlite] 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 is wrapped in else()/endif() unchanged. The installed ROS2 copies of patlite_node.py/patlite.py get a python3 shebang.

    - package.xml: format 1 -> 3 (needed for condition=), so run_depend becomes exec_depend.

    - patlite_node.py: the original rospy code is kept as is for ROS1 users (run() and the __main_ block, used when jsk_ros1_ros2_compat, i.e. jsk_common >= 3.0, is not available), and run_compat() is added next to it as the same loop written with jsk_ros1_ros2_compat's rospy_rclpy_compat (init_node, get_param, create_subscription, log*, is_shutdown, spin_once, shutdown), which runs on both ROS1 and ROS2 when jsk_ros1_ros2_compat is available. Only the imports (rospy and the roslib.load_manifest() fallback do not exist on ROS2) and the __main__ condition of the original lines change.

    - patlite.py: encode the command strings before socket.sendall(); on python3 (noetic, ROS-O, ROS2) sending str raised TypeError.

    • launch/patlite.launch.xml: ROS2 counterpart of patlite.launch.

    - The ROS2 scripts are installed with jsk_ros1_ros2_compat's jsk_ros1_ros2_compat_install_python() (python3 shebang), from jsk-ros-pkg/jsk_common#1832, as a ROS2-only buildtool_depend (>= 3.0.2) that stays off rosidl's build dependencies. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>

  • Contributors: Kei Okada

2.1.31 (2025-05-13)

2.1.30 (2025-05-10)

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 lyrical showing lunar. Known supported distros are highlighted in the buttons above.

Package Summary

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

Repository Summary

Checkout URI https://github.com/jsk-ros-pkg/jsk_3rdparty.git
VCS Type git
VCS Version master
Last Updated 2026-11-18
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.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>>

  • [rospatlite] 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 is wrapped in else()/endif() unchanged. The installed ROS2 copies of patlite_node.py/patlite.py get a python3 shebang.

    - package.xml: format 1 -> 3 (needed for condition=), so run_depend becomes exec_depend.

    - patlite_node.py: the original rospy code is kept as is for ROS1 users (run() and the __main_ block, used when jsk_ros1_ros2_compat, i.e. jsk_common >= 3.0, is not available), and run_compat() is added next to it as the same loop written with jsk_ros1_ros2_compat's rospy_rclpy_compat (init_node, get_param, create_subscription, log*, is_shutdown, spin_once, shutdown), which runs on both ROS1 and ROS2 when jsk_ros1_ros2_compat is available. Only the imports (rospy and the roslib.load_manifest() fallback do not exist on ROS2) and the __main__ condition of the original lines change.

    - patlite.py: encode the command strings before socket.sendall(); on python3 (noetic, ROS-O, ROS2) sending str raised TypeError.

    • launch/patlite.launch.xml: ROS2 counterpart of patlite.launch.

    - The ROS2 scripts are installed with jsk_ros1_ros2_compat's jsk_ros1_ros2_compat_install_python() (python3 shebang), from jsk-ros-pkg/jsk_common#1832, as a ROS2-only buildtool_depend (>= 3.0.2) that stays off rosidl's build dependencies. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>

  • Contributors: Kei Okada

2.1.31 (2025-05-13)

2.1.30 (2025-05-10)

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 lunar. Known supported distros are highlighted in the buttons above.

Package Summary

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

Repository Summary

Checkout URI https://github.com/jsk-ros-pkg/jsk_3rdparty.git
VCS Type git
VCS Version master
Last Updated 2026-11-18
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.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>>

  • [rospatlite] 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 is wrapped in else()/endif() unchanged. The installed ROS2 copies of patlite_node.py/patlite.py get a python3 shebang.

    - package.xml: format 1 -> 3 (needed for condition=), so run_depend becomes exec_depend.

    - patlite_node.py: the original rospy code is kept as is for ROS1 users (run() and the __main_ block, used when jsk_ros1_ros2_compat, i.e. jsk_common >= 3.0, is not available), and run_compat() is added next to it as the same loop written with jsk_ros1_ros2_compat's rospy_rclpy_compat (init_node, get_param, create_subscription, log*, is_shutdown, spin_once, shutdown), which runs on both ROS1 and ROS2 when jsk_ros1_ros2_compat is available. Only the imports (rospy and the roslib.load_manifest() fallback do not exist on ROS2) and the __main__ condition of the original lines change.

    - patlite.py: encode the command strings before socket.sendall(); on python3 (noetic, ROS-O, ROS2) sending str raised TypeError.

    • launch/patlite.launch.xml: ROS2 counterpart of patlite.launch.

    - The ROS2 scripts are installed with jsk_ros1_ros2_compat's jsk_ros1_ros2_compat_install_python() (python3 shebang), from jsk-ros-pkg/jsk_common#1832, as a ROS2-only buildtool_depend (>= 3.0.2) that stays off rosidl's build dependencies. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>

  • Contributors: Kei Okada

2.1.31 (2025-05-13)

2.1.30 (2025-05-10)

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 ardent showing lunar. Known supported distros are highlighted in the buttons above.

Package Summary

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

Repository Summary

Checkout URI https://github.com/jsk-ros-pkg/jsk_3rdparty.git
VCS Type git
VCS Version master
Last Updated 2026-11-18
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.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>>

  • [rospatlite] 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 is wrapped in else()/endif() unchanged. The installed ROS2 copies of patlite_node.py/patlite.py get a python3 shebang.

    - package.xml: format 1 -> 3 (needed for condition=), so run_depend becomes exec_depend.

    - patlite_node.py: the original rospy code is kept as is for ROS1 users (run() and the __main_ block, used when jsk_ros1_ros2_compat, i.e. jsk_common >= 3.0, is not available), and run_compat() is added next to it as the same loop written with jsk_ros1_ros2_compat's rospy_rclpy_compat (init_node, get_param, create_subscription, log*, is_shutdown, spin_once, shutdown), which runs on both ROS1 and ROS2 when jsk_ros1_ros2_compat is available. Only the imports (rospy and the roslib.load_manifest() fallback do not exist on ROS2) and the __main__ condition of the original lines change.

    - patlite.py: encode the command strings before socket.sendall(); on python3 (noetic, ROS-O, ROS2) sending str raised TypeError.

    • launch/patlite.launch.xml: ROS2 counterpart of patlite.launch.

    - The ROS2 scripts are installed with jsk_ros1_ros2_compat's jsk_ros1_ros2_compat_install_python() (python3 shebang), from jsk-ros-pkg/jsk_common#1832, as a ROS2-only buildtool_depend (>= 3.0.2) that stays off rosidl's build dependencies. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>

  • Contributors: Kei Okada

2.1.31 (2025-05-13)

2.1.30 (2025-05-10)

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 bouncy showing lunar. Known supported distros are highlighted in the buttons above.

Package Summary

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

Repository Summary

Checkout URI https://github.com/jsk-ros-pkg/jsk_3rdparty.git
VCS Type git
VCS Version master
Last Updated 2026-11-18
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.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>>

  • [rospatlite] 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 is wrapped in else()/endif() unchanged. The installed ROS2 copies of patlite_node.py/patlite.py get a python3 shebang.

    - package.xml: format 1 -> 3 (needed for condition=), so run_depend becomes exec_depend.

    - patlite_node.py: the original rospy code is kept as is for ROS1 users (run() and the __main_ block, used when jsk_ros1_ros2_compat, i.e. jsk_common >= 3.0, is not available), and run_compat() is added next to it as the same loop written with jsk_ros1_ros2_compat's rospy_rclpy_compat (init_node, get_param, create_subscription, log*, is_shutdown, spin_once, shutdown), which runs on both ROS1 and ROS2 when jsk_ros1_ros2_compat is available. Only the imports (rospy and the roslib.load_manifest() fallback do not exist on ROS2) and the __main__ condition of the original lines change.

    - patlite.py: encode the command strings before socket.sendall(); on python3 (noetic, ROS-O, ROS2) sending str raised TypeError.

    • launch/patlite.launch.xml: ROS2 counterpart of patlite.launch.

    - The ROS2 scripts are installed with jsk_ros1_ros2_compat's jsk_ros1_ros2_compat_install_python() (python3 shebang), from jsk-ros-pkg/jsk_common#1832, as a ROS2-only buildtool_depend (>= 3.0.2) that stays off rosidl's build dependencies. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>

  • Contributors: Kei Okada

2.1.31 (2025-05-13)

2.1.30 (2025-05-10)

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 crystal showing lunar. Known supported distros are highlighted in the buttons above.

Package Summary

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

Repository Summary

Checkout URI https://github.com/jsk-ros-pkg/jsk_3rdparty.git
VCS Type git
VCS Version master
Last Updated 2026-11-18
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.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>>

  • [rospatlite] 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 is wrapped in else()/endif() unchanged. The installed ROS2 copies of patlite_node.py/patlite.py get a python3 shebang.

    - package.xml: format 1 -> 3 (needed for condition=), so run_depend becomes exec_depend.

    - patlite_node.py: the original rospy code is kept as is for ROS1 users (run() and the __main_ block, used when jsk_ros1_ros2_compat, i.e. jsk_common >= 3.0, is not available), and run_compat() is added next to it as the same loop written with jsk_ros1_ros2_compat's rospy_rclpy_compat (init_node, get_param, create_subscription, log*, is_shutdown, spin_once, shutdown), which runs on both ROS1 and ROS2 when jsk_ros1_ros2_compat is available. Only the imports (rospy and the roslib.load_manifest() fallback do not exist on ROS2) and the __main__ condition of the original lines change.

    - patlite.py: encode the command strings before socket.sendall(); on python3 (noetic, ROS-O, ROS2) sending str raised TypeError.

    • launch/patlite.launch.xml: ROS2 counterpart of patlite.launch.

    - The ROS2 scripts are installed with jsk_ros1_ros2_compat's jsk_ros1_ros2_compat_install_python() (python3 shebang), from jsk-ros-pkg/jsk_common#1832, as a ROS2-only buildtool_depend (>= 3.0.2) that stays off rosidl's build dependencies. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>

  • Contributors: Kei Okada

2.1.31 (2025-05-13)

2.1.30 (2025-05-10)

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 eloquent showing lunar. Known supported distros are highlighted in the buttons above.

Package Summary

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

Repository Summary

Checkout URI https://github.com/jsk-ros-pkg/jsk_3rdparty.git
VCS Type git
VCS Version master
Last Updated 2026-11-18
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.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>>

  • [rospatlite] 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 is wrapped in else()/endif() unchanged. The installed ROS2 copies of patlite_node.py/patlite.py get a python3 shebang.

    - package.xml: format 1 -> 3 (needed for condition=), so run_depend becomes exec_depend.

    - patlite_node.py: the original rospy code is kept as is for ROS1 users (run() and the __main_ block, used when jsk_ros1_ros2_compat, i.e. jsk_common >= 3.0, is not available), and run_compat() is added next to it as the same loop written with jsk_ros1_ros2_compat's rospy_rclpy_compat (init_node, get_param, create_subscription, log*, is_shutdown, spin_once, shutdown), which runs on both ROS1 and ROS2 when jsk_ros1_ros2_compat is available. Only the imports (rospy and the roslib.load_manifest() fallback do not exist on ROS2) and the __main__ condition of the original lines change.

    - patlite.py: encode the command strings before socket.sendall(); on python3 (noetic, ROS-O, ROS2) sending str raised TypeError.

    • launch/patlite.launch.xml: ROS2 counterpart of patlite.launch.

    - The ROS2 scripts are installed with jsk_ros1_ros2_compat's jsk_ros1_ros2_compat_install_python() (python3 shebang), from jsk-ros-pkg/jsk_common#1832, as a ROS2-only buildtool_depend (>= 3.0.2) that stays off rosidl's build dependencies. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>

  • Contributors: Kei Okada

2.1.31 (2025-05-13)

2.1.30 (2025-05-10)

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 dashing showing lunar. Known supported distros are highlighted in the buttons above.

Package Summary

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

Repository Summary

Checkout URI https://github.com/jsk-ros-pkg/jsk_3rdparty.git
VCS Type git
VCS Version master
Last Updated 2026-11-18
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.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>>

  • [rospatlite] 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 is wrapped in else()/endif() unchanged. The installed ROS2 copies of patlite_node.py/patlite.py get a python3 shebang.

    - package.xml: format 1 -> 3 (needed for condition=), so run_depend becomes exec_depend.

    - patlite_node.py: the original rospy code is kept as is for ROS1 users (run() and the __main_ block, used when jsk_ros1_ros2_compat, i.e. jsk_common >= 3.0, is not available), and run_compat() is added next to it as the same loop written with jsk_ros1_ros2_compat's rospy_rclpy_compat (init_node, get_param, create_subscription, log*, is_shutdown, spin_once, shutdown), which runs on both ROS1 and ROS2 when jsk_ros1_ros2_compat is available. Only the imports (rospy and the roslib.load_manifest() fallback do not exist on ROS2) and the __main__ condition of the original lines change.

    - patlite.py: encode the command strings before socket.sendall(); on python3 (noetic, ROS-O, ROS2) sending str raised TypeError.

    • launch/patlite.launch.xml: ROS2 counterpart of patlite.launch.

    - The ROS2 scripts are installed with jsk_ros1_ros2_compat's jsk_ros1_ros2_compat_install_python() (python3 shebang), from jsk-ros-pkg/jsk_common#1832, as a ROS2-only buildtool_depend (>= 3.0.2) that stays off rosidl's build dependencies. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>

  • Contributors: Kei Okada

2.1.31 (2025-05-13)

2.1.30 (2025-05-10)

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 lunar. Known supported distros are highlighted in the buttons above.

Package Summary

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

Repository Summary

Checkout URI https://github.com/jsk-ros-pkg/jsk_3rdparty.git
VCS Type git
VCS Version master
Last Updated 2026-11-18
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.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>>

  • [rospatlite] 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 is wrapped in else()/endif() unchanged. The installed ROS2 copies of patlite_node.py/patlite.py get a python3 shebang.

    - package.xml: format 1 -> 3 (needed for condition=), so run_depend becomes exec_depend.

    - patlite_node.py: the original rospy code is kept as is for ROS1 users (run() and the __main_ block, used when jsk_ros1_ros2_compat, i.e. jsk_common >= 3.0, is not available), and run_compat() is added next to it as the same loop written with jsk_ros1_ros2_compat's rospy_rclpy_compat (init_node, get_param, create_subscription, log*, is_shutdown, spin_once, shutdown), which runs on both ROS1 and ROS2 when jsk_ros1_ros2_compat is available. Only the imports (rospy and the roslib.load_manifest() fallback do not exist on ROS2) and the __main__ condition of the original lines change.

    - patlite.py: encode the command strings before socket.sendall(); on python3 (noetic, ROS-O, ROS2) sending str raised TypeError.

    • launch/patlite.launch.xml: ROS2 counterpart of patlite.launch.

    - The ROS2 scripts are installed with jsk_ros1_ros2_compat's jsk_ros1_ros2_compat_install_python() (python3 shebang), from jsk-ros-pkg/jsk_common#1832, as a ROS2-only buildtool_depend (>= 3.0.2) that stays off rosidl's build dependencies. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>

  • Contributors: Kei Okada

2.1.31 (2025-05-13)

2.1.30 (2025-05-10)

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 foxy showing lunar. Known supported distros are highlighted in the buttons above.

Package Summary

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

Repository Summary

Checkout URI https://github.com/jsk-ros-pkg/jsk_3rdparty.git
VCS Type git
VCS Version master
Last Updated 2026-11-18
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.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>>

  • [rospatlite] 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 is wrapped in else()/endif() unchanged. The installed ROS2 copies of patlite_node.py/patlite.py get a python3 shebang.

    - package.xml: format 1 -> 3 (needed for condition=), so run_depend becomes exec_depend.

    - patlite_node.py: the original rospy code is kept as is for ROS1 users (run() and the __main_ block, used when jsk_ros1_ros2_compat, i.e. jsk_common >= 3.0, is not available), and run_compat() is added next to it as the same loop written with jsk_ros1_ros2_compat's rospy_rclpy_compat (init_node, get_param, create_subscription, log*, is_shutdown, spin_once, shutdown), which runs on both ROS1 and ROS2 when jsk_ros1_ros2_compat is available. Only the imports (rospy and the roslib.load_manifest() fallback do not exist on ROS2) and the __main__ condition of the original lines change.

    - patlite.py: encode the command strings before socket.sendall(); on python3 (noetic, ROS-O, ROS2) sending str raised TypeError.

    • launch/patlite.launch.xml: ROS2 counterpart of patlite.launch.

    - The ROS2 scripts are installed with jsk_ros1_ros2_compat's jsk_ros1_ros2_compat_install_python() (python3 shebang), from jsk-ros-pkg/jsk_common#1832, as a ROS2-only buildtool_depend (>= 3.0.2) that stays off rosidl's build dependencies. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>

  • Contributors: Kei Okada

2.1.31 (2025-05-13)

2.1.30 (2025-05-10)

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 lunar. Known supported distros are highlighted in the buttons above.

Package Summary

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

Repository Summary

Checkout URI https://github.com/jsk-ros-pkg/jsk_3rdparty.git
VCS Type git
VCS Version master
Last Updated 2026-11-18
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.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>>

  • [rospatlite] 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 is wrapped in else()/endif() unchanged. The installed ROS2 copies of patlite_node.py/patlite.py get a python3 shebang.

    - package.xml: format 1 -> 3 (needed for condition=), so run_depend becomes exec_depend.

    - patlite_node.py: the original rospy code is kept as is for ROS1 users (run() and the __main_ block, used when jsk_ros1_ros2_compat, i.e. jsk_common >= 3.0, is not available), and run_compat() is added next to it as the same loop written with jsk_ros1_ros2_compat's rospy_rclpy_compat (init_node, get_param, create_subscription, log*, is_shutdown, spin_once, shutdown), which runs on both ROS1 and ROS2 when jsk_ros1_ros2_compat is available. Only the imports (rospy and the roslib.load_manifest() fallback do not exist on ROS2) and the __main__ condition of the original lines change.

    - patlite.py: encode the command strings before socket.sendall(); on python3 (noetic, ROS-O, ROS2) sending str raised TypeError.

    • launch/patlite.launch.xml: ROS2 counterpart of patlite.launch.

    - The ROS2 scripts are installed with jsk_ros1_ros2_compat's jsk_ros1_ros2_compat_install_python() (python3 shebang), from jsk-ros-pkg/jsk_common#1832, as a ROS2-only buildtool_depend (>= 3.0.2) that stays off rosidl's build dependencies. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>

  • Contributors: Kei Okada

2.1.31 (2025-05-13)

2.1.30 (2025-05-10)

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.1
License BSD-3-Clause
Build type CATKIN
Use RECOMMENDED

Repository Summary

Checkout URI https://github.com/jsk-ros-pkg/jsk_3rdparty.git
VCS Type git
VCS Version master
Last Updated 2026-11-18
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.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>>

  • [rospatlite] 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 is wrapped in else()/endif() unchanged. The installed ROS2 copies of patlite_node.py/patlite.py get a python3 shebang.

    - package.xml: format 1 -> 3 (needed for condition=), so run_depend becomes exec_depend.

    - patlite_node.py: the original rospy code is kept as is for ROS1 users (run() and the __main_ block, used when jsk_ros1_ros2_compat, i.e. jsk_common >= 3.0, is not available), and run_compat() is added next to it as the same loop written with jsk_ros1_ros2_compat's rospy_rclpy_compat (init_node, get_param, create_subscription, log*, is_shutdown, spin_once, shutdown), which runs on both ROS1 and ROS2 when jsk_ros1_ros2_compat is available. Only the imports (rospy and the roslib.load_manifest() fallback do not exist on ROS2) and the __main__ condition of the original lines change.

    - patlite.py: encode the command strings before socket.sendall(); on python3 (noetic, ROS-O, ROS2) sending str raised TypeError.

    • launch/patlite.launch.xml: ROS2 counterpart of patlite.launch.

    - The ROS2 scripts are installed with jsk_ros1_ros2_compat's jsk_ros1_ros2_compat_install_python() (python3 shebang), from jsk-ros-pkg/jsk_common#1832, as a ROS2-only buildtool_depend (>= 3.0.2) that stays off rosidl's build dependencies. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>

  • Contributors: Kei Okada

2.1.31 (2025-05-13)

2.1.30 (2025-05-10)

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.1
License BSD-3-Clause
Build type CATKIN
Use RECOMMENDED

Repository Summary

Checkout URI https://github.com/jsk-ros-pkg/jsk_3rdparty.git
VCS Type git
VCS Version master
Last Updated 2026-11-18
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.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>>

  • [rospatlite] 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 is wrapped in else()/endif() unchanged. The installed ROS2 copies of patlite_node.py/patlite.py get a python3 shebang.

    - package.xml: format 1 -> 3 (needed for condition=), so run_depend becomes exec_depend.

    - patlite_node.py: the original rospy code is kept as is for ROS1 users (run() and the __main_ block, used when jsk_ros1_ros2_compat, i.e. jsk_common >= 3.0, is not available), and run_compat() is added next to it as the same loop written with jsk_ros1_ros2_compat's rospy_rclpy_compat (init_node, get_param, create_subscription, log*, is_shutdown, spin_once, shutdown), which runs on both ROS1 and ROS2 when jsk_ros1_ros2_compat is available. Only the imports (rospy and the roslib.load_manifest() fallback do not exist on ROS2) and the __main__ condition of the original lines change.

    - patlite.py: encode the command strings before socket.sendall(); on python3 (noetic, ROS-O, ROS2) sending str raised TypeError.

    • launch/patlite.launch.xml: ROS2 counterpart of patlite.launch.

    - The ROS2 scripts are installed with jsk_ros1_ros2_compat's jsk_ros1_ros2_compat_install_python() (python3 shebang), from jsk-ros-pkg/jsk_common#1832, as a ROS2-only buildtool_depend (>= 3.0.2) that stays off rosidl's build dependencies. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>

  • Contributors: Kei Okada

2.1.31 (2025-05-13)

2.1.30 (2025-05-10)

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.1
License BSD-3-Clause
Build type CATKIN
Use RECOMMENDED

Repository Summary

Checkout URI https://github.com/jsk-ros-pkg/jsk_3rdparty.git
VCS Type git
VCS Version master
Last Updated 2026-11-18
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.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>>

  • [rospatlite] 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 is wrapped in else()/endif() unchanged. The installed ROS2 copies of patlite_node.py/patlite.py get a python3 shebang.

    - package.xml: format 1 -> 3 (needed for condition=), so run_depend becomes exec_depend.

    - patlite_node.py: the original rospy code is kept as is for ROS1 users (run() and the __main_ block, used when jsk_ros1_ros2_compat, i.e. jsk_common >= 3.0, is not available), and run_compat() is added next to it as the same loop written with jsk_ros1_ros2_compat's rospy_rclpy_compat (init_node, get_param, create_subscription, log*, is_shutdown, spin_once, shutdown), which runs on both ROS1 and ROS2 when jsk_ros1_ros2_compat is available. Only the imports (rospy and the roslib.load_manifest() fallback do not exist on ROS2) and the __main__ condition of the original lines change.

    - patlite.py: encode the command strings before socket.sendall(); on python3 (noetic, ROS-O, ROS2) sending str raised TypeError.

    • launch/patlite.launch.xml: ROS2 counterpart of patlite.launch.

    - The ROS2 scripts are installed with jsk_ros1_ros2_compat's jsk_ros1_ros2_compat_install_python() (python3 shebang), from jsk-ros-pkg/jsk_common#1832, as a ROS2-only buildtool_depend (>= 3.0.2) that stays off rosidl's build dependencies. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>

  • Contributors: Kei Okada

2.1.31 (2025-05-13)

2.1.30 (2025-05-10)

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.1
License BSD-3-Clause
Build type CATKIN
Use RECOMMENDED

Repository Summary

Checkout URI https://github.com/jsk-ros-pkg/jsk_3rdparty.git
VCS Type git
VCS Version master
Last Updated 2026-11-18
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.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>>

  • [rospatlite] 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 is wrapped in else()/endif() unchanged. The installed ROS2 copies of patlite_node.py/patlite.py get a python3 shebang.

    - package.xml: format 1 -> 3 (needed for condition=), so run_depend becomes exec_depend.

    - patlite_node.py: the original rospy code is kept as is for ROS1 users (run() and the __main_ block, used when jsk_ros1_ros2_compat, i.e. jsk_common >= 3.0, is not available), and run_compat() is added next to it as the same loop written with jsk_ros1_ros2_compat's rospy_rclpy_compat (init_node, get_param, create_subscription, log*, is_shutdown, spin_once, shutdown), which runs on both ROS1 and ROS2 when jsk_ros1_ros2_compat is available. Only the imports (rospy and the roslib.load_manifest() fallback do not exist on ROS2) and the __main__ condition of the original lines change.

    - patlite.py: encode the command strings before socket.sendall(); on python3 (noetic, ROS-O, ROS2) sending str raised TypeError.

    • launch/patlite.launch.xml: ROS2 counterpart of patlite.launch.

    - The ROS2 scripts are installed with jsk_ros1_ros2_compat's jsk_ros1_ros2_compat_install_python() (python3 shebang), from jsk-ros-pkg/jsk_common#1832, as a ROS2-only buildtool_depend (>= 3.0.2) that stays off rosidl's build dependencies. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>

  • Contributors: Kei Okada

2.1.31 (2025-05-13)

2.1.30 (2025-05-10)

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.1
License BSD-3-Clause
Build type CATKIN
Use RECOMMENDED

Repository Summary

Checkout URI https://github.com/jsk-ros-pkg/jsk_3rdparty.git
VCS Type git
VCS Version master
Last Updated 2026-11-18
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.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>>

  • [rospatlite] 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 is wrapped in else()/endif() unchanged. The installed ROS2 copies of patlite_node.py/patlite.py get a python3 shebang.

    - package.xml: format 1 -> 3 (needed for condition=), so run_depend becomes exec_depend.

    - patlite_node.py: the original rospy code is kept as is for ROS1 users (run() and the __main_ block, used when jsk_ros1_ros2_compat, i.e. jsk_common >= 3.0, is not available), and run_compat() is added next to it as the same loop written with jsk_ros1_ros2_compat's rospy_rclpy_compat (init_node, get_param, create_subscription, log*, is_shutdown, spin_once, shutdown), which runs on both ROS1 and ROS2 when jsk_ros1_ros2_compat is available. Only the imports (rospy and the roslib.load_manifest() fallback do not exist on ROS2) and the __main__ condition of the original lines change.

    - patlite.py: encode the command strings before socket.sendall(); on python3 (noetic, ROS-O, ROS2) sending str raised TypeError.

    • launch/patlite.launch.xml: ROS2 counterpart of patlite.launch.

    - The ROS2 scripts are installed with jsk_ros1_ros2_compat's jsk_ros1_ros2_compat_install_python() (python3 shebang), from jsk-ros-pkg/jsk_common#1832, as a ROS2-only buildtool_depend (>= 3.0.2) that stays off rosidl's build dependencies. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>

  • Contributors: Kei Okada

2.1.31 (2025-05-13)

2.1.30 (2025-05-10)

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.1
License BSD-3-Clause
Build type CATKIN
Use RECOMMENDED

Repository Summary

Checkout URI https://github.com/jsk-ros-pkg/jsk_3rdparty.git
VCS Type git
VCS Version master
Last Updated 2026-11-18
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.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>>

  • [rospatlite] 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 is wrapped in else()/endif() unchanged. The installed ROS2 copies of patlite_node.py/patlite.py get a python3 shebang.

    - package.xml: format 1 -> 3 (needed for condition=), so run_depend becomes exec_depend.

    - patlite_node.py: the original rospy code is kept as is for ROS1 users (run() and the __main_ block, used when jsk_ros1_ros2_compat, i.e. jsk_common >= 3.0, is not available), and run_compat() is added next to it as the same loop written with jsk_ros1_ros2_compat's rospy_rclpy_compat (init_node, get_param, create_subscription, log*, is_shutdown, spin_once, shutdown), which runs on both ROS1 and ROS2 when jsk_ros1_ros2_compat is available. Only the imports (rospy and the roslib.load_manifest() fallback do not exist on ROS2) and the __main__ condition of the original lines change.

    - patlite.py: encode the command strings before socket.sendall(); on python3 (noetic, ROS-O, ROS2) sending str raised TypeError.

    • launch/patlite.launch.xml: ROS2 counterpart of patlite.launch.

    - The ROS2 scripts are installed with jsk_ros1_ros2_compat's jsk_ros1_ros2_compat_install_python() (python3 shebang), from jsk-ros-pkg/jsk_common#1832, as a ROS2-only buildtool_depend (>= 3.0.2) that stays off rosidl's build dependencies. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>

  • Contributors: Kei Okada

2.1.31 (2025-05-13)

2.1.30 (2025-05-10)

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.1
License BSD-3-Clause
Build type CATKIN
Use RECOMMENDED

Repository Summary

Checkout URI https://github.com/jsk-ros-pkg/jsk_3rdparty.git
VCS Type git
VCS Version master
Last Updated 2026-11-18
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.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>>

  • [rospatlite] 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 is wrapped in else()/endif() unchanged. The installed ROS2 copies of patlite_node.py/patlite.py get a python3 shebang.

    - package.xml: format 1 -> 3 (needed for condition=), so run_depend becomes exec_depend.

    - patlite_node.py: the original rospy code is kept as is for ROS1 users (run() and the __main_ block, used when jsk_ros1_ros2_compat, i.e. jsk_common >= 3.0, is not available), and run_compat() is added next to it as the same loop written with jsk_ros1_ros2_compat's rospy_rclpy_compat (init_node, get_param, create_subscription, log*, is_shutdown, spin_once, shutdown), which runs on both ROS1 and ROS2 when jsk_ros1_ros2_compat is available. Only the imports (rospy and the roslib.load_manifest() fallback do not exist on ROS2) and the __main__ condition of the original lines change.

    - patlite.py: encode the command strings before socket.sendall(); on python3 (noetic, ROS-O, ROS2) sending str raised TypeError.

    • launch/patlite.launch.xml: ROS2 counterpart of patlite.launch.

    - The ROS2 scripts are installed with jsk_ros1_ros2_compat's jsk_ros1_ros2_compat_install_python() (python3 shebang), from jsk-ros-pkg/jsk_common#1832, as a ROS2-only buildtool_depend (>= 3.0.2) that stays off rosidl's build dependencies. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>

  • Contributors: Kei Okada

2.1.31 (2025-05-13)

2.1.30 (2025-05-10)

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