Difference: FRCVCodeStereoServer ( vs. 1)

Revision 12015-11-10 - TWikiGuest

Line: 1 to 1
META TOPICPARENT name="FRCVDataRepository"

Stereo Server and Client

The stereoServer code is based on the Aria serverDemo/clientDemo code. Changes the the basic Aria code include

1. use of joystick is supported inclient demo.

2. multiple robots can be used

3. There is a single command to trigger a multi-pan or multi-tilt stereo scan

Client code

The client code was modified from the Aria clientDemo in /usr/local/Aria/Arnetworking/examples/clientDemo.cpp

The easiest way to compile this is to rename the original clientDemo.cpp and substitute this one, then use the makefile in /usr/local/Aria/Arnetworking/examples/ to make the executable.

There are some different versions of this program. The principle difference is whether they support the multiple robot interface commands.

Version 1.0 was an edit of the Aria clientDemo to support moving the robot with the joystick, and to send doStereoScan server command. To work correctly that needs to be connected to the stereoServer program, not the (Aria) serverDemo program. serverDemo will run okay under joystick control, but will ignore the new commands such as doStereoScan.

Version 2.0 was modified to allow control of the DPPU pan and tilt angles during a scan by sending the doStereoPan and doStereoTilt and also to allow connection to multiple robots (instances of serverDemo or stereoServer). Commands were added to allow robot moves to be directed to each robot or broadcast to all robots. Because of network delays, broadasting to all robots does not mean they all move the same unfortunately.

Version 3.0 added in support for control of the visual saliency architecture and automatic selection and data gathering motions for likely landmarks. This has to be run with the correct version of stereoServer to run the commands on the robot.

Here is the joystick button mapping for V3.0

b1 - trigger, has to be pressed for motion to occur. b2 - do a stereoscan. b3 - broadcast robot commands. b4 - send to robot 0 only. b5 - send to robot 1 only. b8 - enable the saliency architecure on the next stereoscan. b9 - allow the robot to carry out an automatic saliency move.

Here is the source of the latest version (v3):

  • clientDemo.cpp: clientDemo.cpp
  • Server code

    The server code is a heavily modified version of the serverDemo.cpp program in /usr/local/Aria/Arnetworking/examples.

    You need a new makefile to make it, you can't use the original from Aria, because of the dependence on the stereo camera (which is captured in the source file stereoCamera.[cpp,h]).

    There have been several version of the server code. The logfile that the server writes has the version number on the top.

    Version 1.0 was the modified (Aria) serverDemo.cpp program with support for the new server command doStereoScan.

    Version 2.0 added support for the doStereoPan and doStereoTilt (which had arguments, so more difficult) server commands. There output format was changed to write GPS data. But the GPS support code was probably not correct.

    Version 2.1. This version has support for older Aria that does not support GPS, and using serialGPS.cpp it writes GPS (north/west) and TCM2 (roll/pitch/compas/temp) data to the logfile for each stop.

    Version 2.2 has support for the saliency architecture, identifying salient landmarks and plotting either a confined space (corridors) or open space (room or outside) set of saliency actions to gather the landmark data. In addition to the stop log, there is now also a landmark log and a separate set of landmark datasets. If you are only interested in landmarks, you can just copy the landmark datasets, images and log.

    Here are the main sources file and the Makfile for the latest version:

    • landmarkList.h:landmarkList.h; support for manipulating lists of landmarks

    • serialGPS.cpp: Read the GPS directly using serial port (because old Aria did not do this).

    For hardware installation instruction of the BB2 and PTZ base, see BumbleBee2Installation

    For information regarding calibration, the Triclops API, etc.., see FRCVBumbleBee2

    -- DamianLyons - 2011-06-14

    META FILEATTACHMENT attachment="clientDemo.cpp" attr="" comment="Version 3.0 of clientDemo" date="1312487565" name="clientDemo.cpp" path="clientDemo.cpp" size="25487" stream="clientDemo.cpp" tmpFilename="/usr/tmp/CGItemp60029" user="DamianLyons" version="2"
    META FILEATTACHMENT attachment="Makefile" attr="" comment="" date="1308081779" name="Makefile" path="C:\Users\Damian Lyons\Desktop\Fordham\Research\stereotransfer\stereotransfer\Makefile" size="1492" stream="C:\Users\Damian Lyons\Desktop\Fordham\Research\stereotransfer\stereotransfer\Makefile" tmpFilename="/usr/tmp/CGItemp51358" user="DamianLyons" version="1"
    META FILEATTACHMENT attachment="stereoCamera.cpp" attr="" comment="support for Bumblebee stereo, supoprts v2.2 of stereoServer" date="1312488313" name="stereoCamera.cpp" path="stereoCamera.cpp" size="18889" stream="stereoCamera.cpp" tmpFilename="/usr/tmp/CGItemp64980" user="DamianLyons" version="4"
    META FILEATTACHMENT attachment="stereoCamera.h" attr="" comment="include for stereoCamera.cpp, supports v2.2 of stereoserver" date="1312488246" name="stereoCamera.h" path="stereoCamera.h" size="2352" stream="stereoCamera.h" tmpFilename="/usr/tmp/CGItemp64741" user="DamianLyons" version="2"
    META FILEATTACHMENT attachment="stereoServer.cpp" attr="" comment="V2.2 with support for saliency architecture, GPS and TCM" date="1312488348" name="stereoServer.cpp" path="stereoServer.cpp" size="32041" stream="stereoServer.cpp" tmpFilename="/usr/tmp/CGItemp65082" user="DamianLyons" version="2"
    META FILEATTACHMENT attachment="serialGPS.cpp" attr="" comment="Read the GPS directly" date="1312488383" name="serialGPS.cpp" path="serialGPS.cpp" size="4557" stream="serialGPS.cpp" tmpFilename="/usr/tmp/CGItemp61608" user="DamianLyons" version="1"
    META FILEATTACHMENT attachment="checkSalience.cpp" attr="" comment="Implements the salience architecture" date="1312488410" name="checkSalience.cpp" path="checkSalience.cpp" size="19265" stream="checkSalience.cpp" tmpFilename="/usr/tmp/CGItemp61575" user="DamianLyons" version="1"
    META FILEATTACHMENT attachment="landmarkList.h" attr="" comment="Managing lists of landmarks for saliency processing" date="1312488487" name="landmarkList.h" path="landmarkList.h" size="1498" stream="landmarkList.h" tmpFilename="/usr/tmp/CGItemp61510" user="DamianLyons" version="1"
    This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2023 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
    Ideas, requests, problems regarding TWiki? Send feedback