test_tools
Functions | Variables
remote_data_collector Namespace Reference

Functions

def del_empty_dirs (s_dir)
 

Variables

 arguments = docopt(__doc__, version='Data Collector 1.0')
 
string cmd = "rosrun test_tools data_collector.py %s %s %s --go" % (remote_dir_name, start.strftime("%H:%M"), end.strftime("%H:%M"))
 
string cp_cmd = "scp -r %s:%s/* %s" % (remote, remote_dir_name, dir_name)
 
string dir_name = name + "/" + remote
 
 end
 
 name = arguments["<name>"]
 
 now = datetime.now()
 
 now_str = now.strftime("%Y-%m-%d_%H-%M-%S")
 
string remote_dir_name = "/tmp/%s" % now_str
 
 remotes = arguments["<remotes>"]
 
 start
 

Detailed Description

Remote Data collector

Usage:
  remote_data_collector.py <name> <start_time> <end_time> <remotes>...
  remote_data_collector.py (-h | --help)
  remote_data_collector.py --version

Examples:
  remote_data_collector.py reo2016_challenge_navigation 15:30 15:40 amigo1 amigo2 amigo3
  remote_data_collector.py rwc_2016_challenge_restaurant 15:30 now sergio1 sergio2 sergi3
  remote_data_collector.py rwc_2016_challenge_speech_recognition 15:30 17:40 localhost

Options:
  -h --help     Show this screen.

Function Documentation

◆ del_empty_dirs()

def remote_data_collector.del_empty_dirs (   s_dir)

Definition at line 29 of file remote_data_collector.py.

Variable Documentation

◆ arguments

remote_data_collector.arguments = docopt(__doc__, version='Data Collector 1.0')

Definition at line 48 of file remote_data_collector.py.

◆ cmd

string remote_data_collector.cmd = "rosrun test_tools data_collector.py %s %s %s --go" % (remote_dir_name, start.strftime("%H:%M"), end.strftime("%H:%M"))

Definition at line 70 of file remote_data_collector.py.

◆ cp_cmd

string remote_data_collector.cp_cmd = "scp -r %s:%s/* %s" % (remote, remote_dir_name, dir_name)

Definition at line 75 of file remote_data_collector.py.

◆ dir_name

string remote_data_collector.dir_name = name + "/" + remote

Definition at line 62 of file remote_data_collector.py.

◆ end

remote_data_collector.end

Definition at line 50 of file remote_data_collector.py.

◆ name

remote_data_collector.name = arguments["<name>"]

Definition at line 51 of file remote_data_collector.py.

◆ now

remote_data_collector.now = datetime.now()

Definition at line 45 of file remote_data_collector.py.

◆ now_str

remote_data_collector.now_str = now.strftime("%Y-%m-%d_%H-%M-%S")

Definition at line 46 of file remote_data_collector.py.

◆ remote_dir_name

string remote_data_collector.remote_dir_name = "/tmp/%s" % now_str

Definition at line 68 of file remote_data_collector.py.

◆ remotes

remote_data_collector.remotes = arguments["<remotes>"]

Definition at line 52 of file remote_data_collector.py.

◆ start

remote_data_collector.start

Definition at line 50 of file remote_data_collector.py.