Re: Question regarding printing to terminal e.g. variable values etc.

Lana Eliason <[email protected]>
Newsgroups gmane.science.robotics.playerstage
Message-ID <[email protected]>
I apologise, I couldn't work out how to reply to the thread on
sourceforge so had to create a new one (If anyone could tell me how I
reply to threads, that'd be great).

Thank you so far Rich and Richard who helped on the previous thread.

Rich: 'First off, are you trying to write a Player client to control your
robots, or are you trying to write a Stage controller?'

I don't completely understand the question but I think the former.
Basically I have a model of a UAV that I am trying to get to wander
around an environment (and also follow another wandering one). I am
coding it in emacs in c++ and then compiling it using 'g++ -o Brian
`pkg-config --cflags playerc++` Brian.cc `pkg-config --libs
playerc++`'. Then I use 'player sim.cfg' to run the simulation, and
click on the created file 'Brian' to start executing the code I have
compiled for my model robot. I don't know if that will help you.

'Also, are you getting any error messages or other output?'

The code all compiles fine, there are no errors flagging up on either
the printf command (I have included all the necessary .h files as far
as I can see) in the terminal, or on any other line of code. All the
other code in the same function is executing fine - it loops through
and continues to execute all the other code, so the code isn't
erroring or halting. It just doesn't 'see' the printf line. I have
tried the fflush command also, but to no avail.


Richard: I have also tried adding '\n' but that hasn't changed
anything either :(


If there is anything else anyone can suggest, I am currently grasping
at straws so any help would be great :)

Thanks,

Lana

------------------------------------------------------------------------------
Gaining the trust of online customers is vital for the success of any company
that requires sensitive data to be transmitted over the Web.   Learn how to 
best implement a security strategy that keeps consumers' information secure 
and instills the confidence they need to proceed with transactions.
http://p.sf.net/sfu/oracle-sfdevnl
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.