updated launch files and readme

This commit is contained in:
Ruixiang Du
2019-10-10 11:13:11 +08:00
parent fff2e3f73b
commit ef72005125
11 changed files with 130 additions and 54 deletions

View File

@@ -154,7 +154,7 @@ include_directories(
## Install ##
#############
install(DIRECTORY launch
install(DIRECTORY launch scripts
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION})

View File

@@ -1,3 +1,6 @@
<launch>
<include file="$(find scout_base)/launch/scout_base.launch" />
<include file="$(find scout_base)/launch/scout_base.launch" >
<arg name="port_name" default="can0" />
<arg name="simulated_robot" default="false" />
</include>
</launch>

View File

@@ -0,0 +1,6 @@
<launch>
<include file="$(find scout_base)/launch/scout_base.launch" >
<arg name="port_name" value="/dev/ttyUSB0" />
<arg name="simulated_robot" value="false" />
</include>
</launch>

View File

@@ -0,0 +1,4 @@
#!/bin/bash
# bring up can interface
sudo ip link set can0 up type can bitrate 500000

View File

@@ -0,0 +1,10 @@
#!/bin/bash
# enable kernel module: gs_usb
sudo modprobe gs_usb
# bring up can interface
sudo ip link set can0 up type can bitrate 500000
# install can utils
sudo apt install -y can-utils