You missed a quite helpful email by Rodrigo Elias Bianci about using a
Windows program with MFC, if you want to see it go to our support web
page ( http://robots.activmedia.com ) to the ARIA section of Newsgroup
Archives you can see his answer. It doesn't sound like you tried to
use MFC though, so you should be all set.
Yes, robot.run(true) blocks, in the reference documentation
(Aria-Reference.html) check out the ArRobot class and read about what
run does. With the true it blocks until the robot's been
disconnected, so then the program exits. Look at runAsync as well,
and search for examples that use it in the examples directory (with
the search in Visual Studio or with grep in Linux). Virtually every
single member function of ARIA is documented in detail explaining what
it does, you can find all of these in the reference html I mentioned
above or the pdf (that weighs in at 495 pages with the index). The
documentation also has an overview that goes through some of the
common things.
Matt LaFary
ActivMedia Robotics
On Tue, Jul 23, 2002 at 09:55:26AM -0400, sb wrote:
> Hello ,
> Just now I have solved the problem just by including mmsystem.h, but there is a new problem.The problem is that I can't stop the action ,that is ,the application was blocked,I don't know why.
>
>
> // run the robot, the true here is to exit if it loses connection
> robot.run(true);
>
> // now just shutdown and go away
> Aria::shutdown();
>
> I want to know if the robot.run(true) function is blocked ,if it is true,
> What is the function of the Aria:shutdown().
> Who can tell me ? Thank you!
> Best,
> Bo Shi,China
> >
> > Hi there!
> >
> > I had the same problem, but just including mmsystem.h will not solve the
> > problem, because Visual C will tell you that MFC applications should not
> > include windows.h. So I made a very ugly fix (but works) that is to include the
> > line #undef windows just after #include "aria.h"
> >
> > I抦 not sure about the ?undef windows?line, but if it抯 not it, it抯
> > something very similar?I did that some months ago?And after that I quit using
> > Visual and I抦 currently working with Borland C++ Builder, and I don抰 miss
> > visual in any way.
> >
> > Best Regards,
> >
> > Rodrigo Elias Bianchi
> > LABIC - Computational Inteligence Lab
> > University of Sao Paulo
> >
> > C髉ia Matt LaFary <lafary@activmedia.com>:
> >
> > > At the top of ariaUtil.h try including <mmsystem.h> and I imagine
> > > it'll work. I think this because I looked at the windows help file
> > > for timeGetTime and it said this is the header its from, and its
> > > complaining in ariaUtil.h that it doesn't know what timeGetTime is
> > > from.
> > >
> > > I don't know why a windows program would be any different than a
> > > console program, Saphira itself is a windows program that uses ARIA.
> > > This is one of the reasons ARIA comes with the source though, so that
> > > if odd things happen you have some chance of working it out.
> > >
> > >
> > > Matt LaFary
> > > ActivMedia Robotics
> > >
> > > On Tue, Jul 23, 2002 at 04:12:01AM -0400, sb wrote:
> > > > Thank you for your responses,I have developed a programme by MS VC++ 6
> > > with ARIA
> > > > ,only to make an application like windows style,but I found some
> > > compiling errors,for examples,
> > > > "c:/program files/microsoft visual studio/vc98/include/ariautil.h(512)
> > > :
> > > > error C2065: 'timeGetTime' : undeclared identifier"
> > > > and
> > > > c:/program files/microsoft visual studio/vc98/include/mmsystem.h(1984)
> > > :
> > > > error C2373: 'timeGetTime' : redefinition; different type
> > > modifiers."
> > > >
> > > > I included the Aria and linked in the libraries.I think Aria
> > > redefinite the timeGetTime funtion that MS VC++ have definited. Would
> > > you like to give some advices?
> > > >
> > > > Thank you!
> > > > Best
> > > > Bo Shi,China
> > > >
> > > > > Yes, you can make an ARIA program thats a windows program, but I
> > > don't
> > > > > have any samples of Windows programs like this simply because all
> > > you
> > > > > have to do is write a normal windows program and then include Aria
> > > and
> > > > > link in the libraries. Basically what you can do is make a new
> > > > > project thats a windows application (say for example their hello
> > > world
> > > > > program) and then into that main put your Aria code... and then
> > > for
> > > > > the settings you need to look through the settings for one of the
> > > > > other projects and add the appropriate header path and libraries.
> > > > > Mostly you need to modify 'general' under the link tab to include
> > > > > Aria.lib in the list of libraries to compile inand then under
> > > 'input'
> > > > > search ../lib for library files... then under the C++ tab you need
> > > to
> > > > > modify 'input' so that it searches ../include for headers. Then
> > > you
> > > > > should be able to use your program. You may also want to go under
> > > > > 'language generation' on the C++ tab and tell it to use
> > > multithreaded
> > > > > instead of single threaded runtime library (not the dll). You may
> > > > > want to pick up a book about Visual C++ if you aren't familiar
> > > with
> > > > > the compiler.
> > > > >
> > > > > Matt LaFary
> > > > > ActivMedia Robotics
> > > > >
> > > > > On Mon, Jul 22, 2002 at 07:42:07PM +0000, Zeb Dahl wrote:
> > > > > > Hello Bo Shi,
> > > > > > As far as I know, no one has done much with the type of
> > > application you
> > > > > > are interested in. You might try searching the aria-users
> > > archives to
> > > > > > see if you can find anything. We don't have any examples of such
> > > a
> > > > > > program available here, though.
> > > > > > Questions like this are best sent to aria-users@activmedia.com
> > > and not
> > > > > > only to me, so that they can be seen and possibly better answered
> > > by the
> > > > > > broader aria using community. Best,
> > > > > > -Zeb Dahl
> > > > > >
> > > > > > Original Message dated 7/19/02, 10:21:18 PM
> > > > > > Author: "sb" <shibo_chinaren@163.com>
> > > > > > Re:
> > > > > >
> > > =?gb2312?B?UmU6IFJlOiBIb3cgdG8gZGV2ZWxvcCBhcHBsaWNhdGlvbnMgbGlrZSB3aW5kb
> > > > > > 3dzIHN0eWxl IHdpdGggQVJJQQ==?=:
> > > > > >
> > > > > >
> > > > > > Hello,
> > > > > > Firstly,thank you for your help,but I want to know if we can
> > > develop
> > > > > > applications like windows style with aria only ,not depending on
> > >
> > > > > > Saphira.If you have some samples of windows style developped by
> > > ARIA
> > > > > > ,would you like to give me the code ,thank you! Best,
> > > > > > -Bo Shi,China
> > > > > > > Hello,
> > > > > > > Check the settings in the compiler. Look at the wander.dsp
> > > project in the
> > > > > > > examples directory for sample settings. Also on the Projects -->
> > > Settings
> > > > > > > --> Link tab, make sure that you have Aria.lib in the
> > > Object/Library
> > > > > > modules
> > > > > > > and that the ARIA/lib directory is in the additional library
> > > path.
> > > > > > > If by window style, you mean something with a nice GUI, I would
> > > suggest
> > > > > > > that you try using Saphira, which now uses all of the ARIA
> > > stuff.
> > > > > > > You should sign up for the Aria-users list. Send an email to
> > > > > > > aria-users-request@activmedia.com with the subject "subscribe."
> > > Best,
> > > > > > > -Zeb Dahl, ActivMedia
> > > > > > >
> > > > > > >
> > > > > > > > Recently I have programmed a programme with ARIA by Visual C++
> > > 6.0.I want
> > > > > > to acquire a application of windows style ,controling the
> > > robots.But
> > > > > > > there are some compiling errors .For examples ,
> > > > > > > > "c:/program files/microsoft visual
> > > studio/vc98/include/ariautil.h(512) :
> > > > > > > error C2065: 'timeGetTime' : undeclared identifier"
> > > > > > > > and
> > > > > > >
> > > > > > > > c:/program files/microsoft visual
> > > studio/vc98/include/mmsystem.h(1984) :
> > > > > > > error C2373: 'timeGetTime' : redefinition; different type
> > > modifiers
> > > > > > >
> > > > > > > > There are collisions.Who can tell me how to solve the problems
> > > and how to
> > > > > > > develop applications like windows style (not dos style) with
> > > ARIA?
> > > > > > >
> > > > > > > > Thank you!
> > > > > > >
> > > > > > >
> > > > > >
> > > > > >
> > >
> >