Revision d2acabf3
ID | d2acabf345b1b677d9203ebe98f151065e28bec6 |
Added rosscout.launch in libscout
On startup, it will now launch rosscout instead of rosserial. rosscout
includes rosserial, motors, encoders, and any other helper nodes added
later.
scout/libscout/launch/helper_nodes.xml | ||
---|---|---|
1 |
<node name="motors" pkg="motors" type="motors_node" /> |
|
2 |
<node name="encoders" pkg="encoders" type="encoders_node" /> |
|
3 |
<!-- TODO add more --> |
scout/libscout/launch/rosscout.launch | ||
---|---|---|
1 |
<!-- |
|
2 |
This file is roslaunched when the scout boots. There are two Upstart |
|
3 |
daemons, roscore and rosscout. Use initctl(8) to control them. rosscout |
|
4 |
will automatically start or stop when roscore does. |
|
5 |
--> |
|
6 |
|
|
7 |
<launch> |
|
8 |
<include file="$(rospack find scout_avr)/launch/rosserial.xml" /> |
|
9 |
<include file="$(rospack find libscout)/launch/helper_nodes.xml" /> |
|
10 |
<!-- TODO launch a top-level libscout behavior --> |
|
11 |
</launch> |
scout_avr/launch/rosserial.launch | ||
---|---|---|
1 | 1 |
<launch> |
2 |
<node pkg="rosserial_python" type="serial_node.py" name="serial_node" output="screen"> |
|
3 |
<param name="~port" value="/dev/ttyUSB0" /> |
|
4 |
<param name="~baud" value="38400" /> |
|
5 |
</node> |
|
2 |
<include file="$(rospack find scout_avr)/launch/rosserial.xml" /> |
|
6 | 3 |
</launch> |
scout_avr/launch/rosserial.xml | ||
---|---|---|
1 |
<node pkg="rosserial_python" type="serial_node.py" name="serial_node" output="screen"> |
|
2 |
<param name="~port" value="/dev/ttyUSB0" /> |
|
3 |
<param name="~baud" value="38400" /> |
|
4 |
</node> |
scout_gumstix/etc/init/rosscout.conf | ||
---|---|---|
1 |
start on started roscore |
|
2 |
stop on stopping roscore |
|
3 |
|
|
4 |
setuid scout |
|
5 |
setgid scout |
|
6 |
|
|
7 |
respawn |
|
8 |
console log |
|
9 |
|
|
10 |
script |
|
11 |
. /opt/ros/fuerte/setup.sh |
|
12 |
ROS_PACKAGE_PATH=/home/scout/ros:/home/scout/scoutos:$ROS_PACKAGE_PATH |
|
13 |
exec roslaunch libscout rosscout.launch |
|
14 |
end script |
scout_gumstix/etc/init/rosserial.conf | ||
---|---|---|
1 |
start on started roscore |
|
2 |
stop on stopping roscore |
|
3 |
|
|
4 |
setuid scout |
|
5 |
setgid scout |
|
6 |
|
|
7 |
respawn |
|
8 |
console log |
|
9 |
|
|
10 |
script |
|
11 |
. /opt/ros/fuerte/setup.sh |
|
12 |
ROS_PACKAGE_PATH=/home/scout/ros:/home/scout/scoutos:$ROS_PACKAGE_PATH |
|
13 |
exec roslaunch scout_avr rosserial.launch |
|
14 |
end script |
Also available in: Unified diff