ScoutSoftware: Difference between revisions

From ISRWiki
Jump to navigation Jump to search
(Created page with "== About == This page presents instructions and software for our customized versions of Nomadic Scouts. This customization was performed by [http://www.idmind.pt IdMind] and inc...")
 
No edit summary
Line 5: Line 5:
== Software ==
== Software ==


The source code can be found here: [[Media:Ros scout-1.0.tgz|ros_scout-1.0.tgz]].
The source code can be found here: [[Media:Ros scout-1.0.tgz|ros_scout-1.0.tgz]]. All platforms already include a scout directory at home, accessible from ROS_PACKAGE_PATH.
 
== Usage ==


It comprises these packages:
It comprises these packages:
Line 12: Line 14:
* joy -- a copy of the [http://wiki.ros.org/joy joy package] compatible with the Scout software
* joy -- a copy of the [http://wiki.ros.org/joy joy package] compatible with the Scout software


The drivers in scout_drivers include three nodes:
The drivers in scout_drivers include these nodes:
* motors -- interfaces the motor controllers: sends motor velocity commands and receives encoder readings
* motors -- interfaces the motor controllers: sends motor velocity commands and receives encoder readings
* sensors -- interfaces the sonars (currently disabled) and the battery sensors
* sensors -- interfaces the sonars (currently disabled) and the battery sensors
* joydrive -- node to control the robot using a gamepad
* joydrive -- node to control the robot using a gamepad
* keydrive -- node to control the robot using the keyboard
Example launch file:
<pre>
<launch>
<node name="motors"  pkg="scout_driver"  type="motors"/>
<node name="sensors"  pkg="scout_driver"  type="sensors"/>
<node name="joy"      pkg="joy"          type="joy_node"/>
<node name="joydrive" pkg="scout_driver"  type="joydrive"/>
</launch>
</pre>
=== Subscribed topics ===
* /scout/motion (ScoutMotionMsg) -- reference velocities for each wheel (velocity_left and velocity_right) in raw units and an enable flag
=== Published topics ===
* /scout/battery (ScoutBatteryMsg) -- voltages (in V) of batteries (battery1) and external power supply (battery2)
* /scout/sonars (ScoutSonarsMsg) -- (DISABLED BY DEFAULT) array of sonar readings
* /scout/motors (ScoutMotorsMsg) -- encoder counter for each wheel (count_left and count_right) in raw units

Revision as of 14:48, 25 September 2013

About

This page presents instructions and software for our customized versions of Nomadic Scouts. This customization was performed by IdMind and includes new electronics. These platforms include a nowadays obsolete Pentium III motherboard, and so it is only appropriate to run the ROS drivers for the hardware (motors and sensors). So the suggested architecture is to use an external laptop for the main software, connecting via a ethernet cable the platform motherboard. The driver nodes can be remotely launched using roslaunch.

Software

The source code can be found here: ros_scout-1.0.tgz. All platforms already include a scout directory at home, accessible from ROS_PACKAGE_PATH.

Usage

It comprises these packages:

  • scout_drivers -- contains the main drivers
  • scout_msgs -- defines the message types employed by the drivers
  • joy -- a copy of the joy package compatible with the Scout software

The drivers in scout_drivers include these nodes:

  • motors -- interfaces the motor controllers: sends motor velocity commands and receives encoder readings
  • sensors -- interfaces the sonars (currently disabled) and the battery sensors
  • joydrive -- node to control the robot using a gamepad
  • keydrive -- node to control the robot using the keyboard

Example launch file:

<launch>
	<node name="motors"   pkg="scout_driver"  type="motors"/>
	<node name="sensors"  pkg="scout_driver"  type="sensors"/>
	<node name="joy"      pkg="joy"           type="joy_node"/>
	<node name="joydrive" pkg="scout_driver"  type="joydrive"/>
</launch>

Subscribed topics

  • /scout/motion (ScoutMotionMsg) -- reference velocities for each wheel (velocity_left and velocity_right) in raw units and an enable flag

Published topics

  • /scout/battery (ScoutBatteryMsg) -- voltages (in V) of batteries (battery1) and external power supply (battery2)
  • /scout/sonars (ScoutSonarsMsg) -- (DISABLED BY DEFAULT) array of sonar readings
  • /scout/motors (ScoutMotorsMsg) -- encoder counter for each wheel (count_left and count_right) in raw units