Skip to content

Commit

Permalink
Added udev rules for SCITOS
Browse files Browse the repository at this point in the history
Signed-off-by: Alberto Tudela <[email protected]>
  • Loading branch information
ajtudela committed Oct 8, 2024
1 parent dfe3129 commit 0509df2
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scitos2_mira/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,10 @@ install(FILES test/scitos_config.xml
DESTINATION share/${PROJECT_NAME}/test
)

install(FILES rules/99-SCITOS.rules
DESTINATION "/etc/udev/rules.d"
)

# ###########
# Testing ##
# ###########
Expand Down
2 changes: 2 additions & 0 deletions scitos2_mira/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
<depend>scitos2_core</depend>
<depend>scitos2_common</depend>

<exec_depend>nav2_lifecycle_manager</exec_depend>

<test_depend>ament_lint_auto</test_depend>
<test_depend>ament_lint_common</test_depend>
<test_depend>ament_cmake_gtest</test_depend>
Expand Down
12 changes: 12 additions & 0 deletions scitos2_mira/rules/99-SCITOS.rules
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
###############################################################################
# udev rules for MetraLabs MCU and HG4
###############################################################################

SUBSYSTEM=="tty", ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6011", ATTRS{manufacturer}=="MetraLabs", ATTRS{product}=="SCITOS MCU", ENV{ID_USB_INTERFACE_NUM}=="00", SYMLINK+="USB_LaserFront"
SUBSYSTEM=="tty", ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6011", ATTRS{manufacturer}=="MetraLabs", ATTRS{product}=="SCITOS MCU", ENV{ID_USB_INTERFACE_NUM}=="01", SYMLINK+="USB_LaserBack"
SUBSYSTEM=="tty", ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6011", ATTRS{manufacturer}=="MetraLabs", ATTRS{product}=="SCITOS MCU", ENV{ID_USB_INTERFACE_NUM}=="02", SYMLINK+="USB_MLCAN"
#SUBSYSTEM=="tty", ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6011", ATTRS{manufacturer}=="MetraLabs", ATTRS{product}=="SCITOS MCU", ENV{ID_USB_INTERFACE_NUM}=="03", SYMLINK+="USB_unused"

SUBSYSTEM=="tty", ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6010", ATTRS{manufacturer}=="MetraLabs", ATTRS{product}=="ML-LIDAR0", ENV{ID_USB_INTERFACE_NUM}=="00", SYMLINK+="USB_Lidar0"
SUBSYSTEM=="tty", ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6010", ATTRS{manufacturer}=="MetraLabs", ATTRS{product}=="ML-LIDAR0", ENV{ID_USB_INTERFACE_NUM}=="01", SYMLINK+="USB_Lidar1"

0 comments on commit 0509df2

Please sign in to comment.