{"action":"created","issue":{"url":"https://api.github.com/repos/utexas-bwi/bwi_common/issues/32","labels_url":"https://api.github.com/repos/utexas-bwi/bwi_common/issues/32/labels{/name}","comments_url":"https://api.github.com/repos/utexas-bwi/bwi_common/issues/32/comments","events_url":"https://api.github.com/repos/utexas-bwi/bwi_common/issues/32/events","html_url":"https://github.com/utexas-bwi/bwi_common/issues/32","id":102172629,"number":32,"title":"bwi_logging: saves log files within the source package ","user":{"login":"jack-oquin","id":1471375,"avatar_url":"https://avatars.githubusercontent.com/u/1471375?v=3","gravatar_id":"","url":"https://api.github.com/users/jack-oquin","html_url":"https://github.com/jack-oquin","followers_url":"https://api.github.com/users/jack-oquin/followers","following_url":"https://api.github.com/users/jack-oquin/following{/other_user}","gists_url":"https://api.github.com/users/jack-oquin/gists{/gist_id}","starred_url":"https://api.github.com/users/jack-oquin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jack-oquin/subscriptions","organizations_url":"https://api.github.com/users/jack-oquin/orgs","repos_url":"https://api.github.com/users/jack-oquin/repos","events_url":"https://api.github.com/users/jack-oquin/events{/privacy}","received_events_url":"https://api.github.com/users/jack-oquin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-20T16:00:46Z","updated_at":"2015-08-20T16:18:13Z","closed_at":null,"body":"That does not work with binary packages, which are installed read-only.\r\n\r\nThe usual recommendation for things like this is something like ``$ROS_HOME/bwi_logging``, and if $ROS_HOME is not defined, use ``~/.ros`` instead. The program *must* check the existence of that directory and create it, if necessary.\r\n\r\nUnfortunately, that will cause problems on the robots, with all the users saving log files under their own home directories. I think we'd prefer a single global system directory for them. Relying on every user to define $ROS_HOME appropriately does not seem feasible. So, we probably want to create a directory like ``/etc/bwi``, writeable by the ``bwi`` group, in which to store per-robot configuration and logs.\r\n\r\n@shiqizhang6: I think you have more important things to do. I'll work on this if you like, although I would need some of your time for explaining how it all fits together. I see the ``record.launch`` file that automatically saves the bags, but not when and where ``frame_recording`` and ``get_distance.py`` are used. There is also an empty ``src/trajectory_following.cpp``, which I plan to delete."},"comment":{"url":"https://api.github.com/repos/utexas-bwi/bwi_common/issues/comments/133064645","html_url":"https://github.com/utexas-bwi/bwi_common/issues/32#issuecomment-133064645","issue_url":"https://api.github.com/repos/utexas-bwi/bwi_common/issues/32","id":133064645,"user":{"login":"jack-oquin","id":1471375,"avatar_url":"https://avatars.githubusercontent.com/u/1471375?v=3","gravatar_id":"","url":"https://api.github.com/users/jack-oquin","html_url":"https://github.com/jack-oquin","followers_url":"https://api.github.com/users/jack-oquin/followers","following_url":"https://api.github.com/users/jack-oquin/following{/other_user}","gists_url":"https://api.github.com/users/jack-oquin/gists{/gist_id}","starred_url":"https://api.github.com/users/jack-oquin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jack-oquin/subscriptions","organizations_url":"https://api.github.com/users/jack-oquin/orgs","repos_url":"https://api.github.com/users/jack-oquin/repos","events_url":"https://api.github.com/users/jack-oquin/events{/privacy}","received_events_url":"https://api.github.com/users/jack-oquin/received_events","type":"User","site_admin":false},"created_at":"2015-08-20T16:18:13Z","updated_at":"2015-08-20T16:18:13Z","body":"I would also like to add ``/diagnostics`` to the list of topics saved."}}