install script and usb rules

This commit is contained in:
acki
2025-05-21 12:59:34 -04:00
parent dad30740be
commit 0789157951
2 changed files with 12 additions and 2 deletions

View File

@@ -24,7 +24,7 @@ sudo apt install ros-dev-tools ros-jazzy-desktop -y
git submodule init
git submodule update
cd WiringPi
cd WiringPi || exit 1
./build debian
mv ./debian-template/wiringpi_*.deb .
@@ -42,4 +42,11 @@ echo "export RMW_IMPLEMENTATION=rmw_fastrtps_cpp
export FASTRTPS_DEFAULT_PROFILES_FILE=~/modelec-marcel-ROS/fastdds_setup.xml
export ROS_DOMAIN_ID=128" >> ~/.bashrc
source ~/.bashrc
source ~/.bashrc
cp usbs.rules /etc/udev/rules.d
source src/rplidar_ros/scripts/create_udev_rules.sh
cp ros2_launch_marcel.desktop ~/Desktop
chmod +x ~/Desktop/ros2_launch_marcel.desktop
gio set ~/Desktop/ros2_launch_marcel.desktop "metadata::trusted" true

3
usbs.rules Normal file
View File

@@ -0,0 +1,3 @@
SUBSYSTEM=="tty", ATTRS{idVendor}=="", ATTRS{idProduct}=="", NAME="USB_ALIM", SYMLINK="USB_ALIM"
SUBSYSTEM=="tty", ATTRS{idVendor}=="", ATTRS{idProduct}=="", NAME="USB_ODO", SYMLINK="USB_ODO"
SUBSYSTEM=="tty", ATTRS{idVendor}=="", ATTRS{idProduct}=="", NAME="USB_ACTION", SYMLINK="USB_ACTION"