How ros-industrial-attic/keyence_experimental works
This ROS package communicates with Keyence LJ-V sensors over TCP/IP and publishes sampled profiles as point clouds. The principal workflow is: the driver connects to the controller, requests a single profile, decodes its packed measurements, and publishes a ROS cloud; it also serves requests to change the active program and reads settings to update sampling behavior. The library separates protocol messages, synchronous client transport, and profile unpacking. The README documents these capabilities, but several source excerpts omit call sites, so unverified links are left out.
Main entry points: keyence_driver_node.cpp Driver node · high_speed_single_profile.cpp Single profile command · keyence_tcp_client.cpp TCP client · keyence_client.h Synchronous client
Components 18
ROS driver
- Driver node
src/keyence_driver_node.cpp - Change program service
srv/ChangeProgram.srv - Point cloud output
src/keyence_driver_node.cpp
Protocol library
- Message framing
keyence_library/include/keyence/impl/keyence_message.h - Settings command
keyence_library/src/impl/messages/get_setting.cpp - Program command
keyence_library/include/keyence/impl/messages/change_program.h - Single profile command
keyence_library/src/impl/messages/high_speed_single_profile.cpp - Setting definitions
keyence_library/include/keyence/impl/settings_defs.h - Program change example
keyence_library/src/change_program.cpp - Settings example
keyence_library/src/get_setting.cpp
TCP transport
- Synchronous client
keyence_library/include/keyence/impl/keyence_client.h - TCP client
keyence_library/src/impl/keyence_tcp_client.cpp
Profile decoding
- Profile unpacking
keyence_library/src/impl/ljv7_rawdata.cpp - Profile definitions
keyence_library/include/keyence/impl/high_speed_defs.h - Profile sampling example
keyence_library/src/get_profile.cpp
Other components
- ROS caller
- Keyence controller
- Point cloud subscriber
Connections 16
- ROS caller → Change program service: calls
README.md - Change program service → Driver node: handled by
README.md - Driver node → TCP client: connects through
src/keyence_driver_node.cpp - Driver node → Settings command: requests settings
src/keyence_driver_node.cpp - Driver node → Program command: sends command
src/keyence_driver_node.cpp - Driver node → Single profile command: requests profile
src/keyence_driver_node.cpp - Synchronous client → TCP client: implemented by
- Synchronous client → Message framing: encodes messages
keyence_library/include/keyence/impl/keyence_client.h - TCP client → Keyence controller: exchanges bytes
keyence_library/src/impl/keyence_tcp_client.cpp - Single profile command → Profile unpacking: unpacks data
keyence_library/src/impl/messages/high_speed_single_profile.cpp - Single profile command → Profile definitions: decodes metadata
keyence_library/src/impl/messages/high_speed_single_profile.cpp - Driver node → Point cloud output: publishes cloud
README.md - Point cloud output → Point cloud subscriber: publishes to
README.md - Profile sampling example → Single profile command: samples via
keyence_library/src/get_profile.cpp - Program change example → Program command: uses command
keyence_library/src/change_program.cpp - Settings example → Settings command: uses command
keyence_library/src/get_setting.cpp