-
Notifications
You must be signed in to change notification settings - Fork 983
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
rosbag recorder triggerd by arming #385
Comments
I like it 💃 |
I'm actually think to make custom |
Because rosbag is anyway a standalone program I like more the generic one to be able to run any program. |
I checked rosbag and found that Proposed config: some_node: # only used in log
event: armed # not sure that it needed, for now i only want armning
action: run, stop # required, start on run, stop on disarm
name: rosbag # optional, define node name
restart: true # optional, restart? not sure that it'll be implemented soon
output: log # optional, same as <node output="" />
rosrun: rosbag record -a # like rosrun
some_script_1:
event: armed
shell: turn_off_wifi.sh # any executable,
some_script_2:
event: disarmed
shell: turn_on_wifi.sh |
Looks good. What about during same session if armed then disarmed and armed again? |
Perhaps roslaunch is too complex. Yes, rosrun kills previous node with same name. That don't work for anonymous nodes. Also first must be more verbose: event: armed, disarmed
action: run, stop |
http://wiki.ros.org/roslaunch/API%20Usage - helps a lot. Last thing - good name for that node. eventlauncher? |
of course also integration of roslaunch would be nice. |
Shell-launcher complete. Unfortunate stdout/stderr logging do not work (break execution). Example config: event_launcher.yaml As you can see there was ability to define custom trigger for event. event_name: # used in `event`
service: service_path # std_srvs/Trigger Next thing is rosrun. |
ROSLaunch class wants all node operations from main thread. That is not possible.
Hmm, implementing rosrun has problems. I think that we may use shell nodes for all our needs. |
Closed by #386. Shell entries just works fine. |
I think it might be useful to start log recording on FCU arming.
The text was updated successfully, but these errors were encountered: