Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Redirecting the output of gztopic hz to a file does not work #969

Open
osrf-migration opened this issue Nov 27, 2013 · 3 comments
Open

Redirecting the output of gztopic hz to a file does not work #969

osrf-migration opened this issue Nov 27, 2013 · 3 comments
Labels

Comments

@osrf-migration
Copy link

Original report (archived issue) by Carlos Agüero (Bitbucket: caguero, GitHub: caguero).


The output is produced using printf and the output is not flushed when a file redirection is applied. Example:

#!c++

gztopic hz /gazebo/default/world_stats > log

The same problem happens when gztopic hz is combined with another command using a pipe.

Prefixing unbuffer to the command fixes the problem but I guess this is a Linux specific solution.

I propose to replace printf by cout to solve this issue.

See pull request #854.

@osrf-migration
Copy link
Author

Original comment by Carlos Agüero (Bitbucket: caguero, GitHub: caguero).


  • Edited issue description

1 similar comment
@osrf-migration
Copy link
Author

Original comment by Carlos Agüero (Bitbucket: caguero, GitHub: caguero).


  • Edited issue description

@osrf-migration
Copy link
Author

Original comment by Nate Koenig (Bitbucket: Nathan Koenig).


  • set version to "all"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant