Skip to content

Commit 534cc4c

Browse files
committed
replace all references to CorlDev and SPARTAN with LabelFusion
todo: the documentation in docs/pipeline.rst has not been updated yet
1 parent 8318b47 commit 534cc4c

34 files changed

Lines changed: 231 additions & 229 deletions

automation/leaderCreateJobs.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,10 @@
1111
# Run this script from anywhere
1212

1313
# ------------------------------
14-
path_to_spartan = os.environ['SPARTAN_SOURCE_DIR']
15-
path_to_automation = path_to_spartan + "/src/CorlDev/automation"
16-
path_to_data = path_to_spartan + "/src/CorlDev/data"
14+
path_to_labelfusion = os.environ['LABELFUSION_SOURCE_DIR']
15+
path_to_data = os.path.join(path_to_labelfusion, 'data')
16+
path_to_automation = os.path.join(path_to_labelfusion, 'automation')
17+
1718

1819
config_file = path_to_automation + "/configuration.yaml"
1920

@@ -96,4 +97,4 @@
9697
# os.system("touch " + progress_file_fullpath) # mark as wip
9798
# os.system("cd " + path_to_job_folder + " && run_create_data")
9899
# os.system("cd " + path_to_job_folder + " && run_resize")
99-
# os.system("rm " + progress_file_fullpath) # delete wip
100+
# os.system("rm " + progress_file_fullpath) # delete wip

automation/scp_out.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@
55
source = sys.argv[1]
66
destination_user = sys.argv[2]
77

8-
path_to_spartan = os.environ['SPARTAN_SOURCE_DIR']
9-
scp_config_file = path_to_spartan + "/src/CorlDev/automation/scp_config.yaml"
8+
path_to_labelfusion = os.environ['LABELFUSION_SOURCE_DIR']
9+
scp_config_file = os.path.join(path_to_labelfusion, 'automation/scp_config.yaml')
10+
1011
with open(scp_config_file, 'r') as stream:
1112
try:
1213
config = yaml.load(stream)
@@ -23,4 +24,4 @@
2324

2425
print "sending to ", destination_user
2526
os.system("sshpass -p '" + pw + "' scp -r -P " + port + " " + source + " " + address+":"+destination)
26-
print "sent", source
27+
print "sent", source

automation/scripts/autoAlignmentTool.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
# Run this script from anywhere
99

1010
# ------------------------------
11-
path_to_spartan = os.environ['SPARTAN_SOURCE_DIR']
12-
path_to_data = path_to_spartan + "/src/CorlDev/data"
11+
path_to_labelfusion = os.environ['LABELFUSION_SOURCE_DIR']
12+
path_to_data = os.path.join(path_to_labelfusion, 'data')
1313

1414
# folders in /data to track
1515
folders = ["logs_test"]

automation/scripts/autoCreateDataAndResize.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
# Run this script from anywhere
99

1010
# ------------------------------
11-
path_to_spartan = os.environ['SPARTAN_SOURCE_DIR']
12-
path_to_data = path_to_spartan + "/src/CorlDev/data"
11+
path_to_labelfusion = os.environ['LABELFUSION_SOURCE_DIR']
12+
path_to_data = os.path.join(path_to_labelfusion, 'data')
1313

1414
# folders in /data to track
1515
folders = ["logs_test"]
@@ -58,4 +58,4 @@
5858
os.system("cd " + path_to_job_folder + " && run_create_data")
5959
os.system("cd " + path_to_job_folder + " && run_resize")
6060
except KeyboardInterrupt:
61-
quit()
61+
quit()

automation/scripts/autoNoTrimPrep.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
# Run this script from anywhere
99

1010
# ------------------------------
11-
path_to_spartan = os.environ['SPARTAN_SOURCE_DIR']
12-
path_to_data = path_to_spartan + "/src/CorlDev/data"
11+
path_to_labelfusion = os.environ['LABELFUSION_SOURCE_DIR']
12+
path_to_data = os.path.join(path_to_labelfusion, 'data')
1313

1414
# folders in /data to track
1515
folders = ["logs_test"]

automation/scripts/bin/auto_alignment_tool

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22

33
echo "Auto find what to run_alignment_tool on..."
44

5-
python $SPARTAN_SOURCE_DIR/src/CorlDev/automation/scripts/autoAlignmentTool.py
5+
python $LABELFUSION_SOURCE_DIR/automation/scripts/autoAlignmentTool.py
66

77
echo "Done."

automation/scripts/bin/auto_create_data_and_resize

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22

33
echo "Auto run_create_data and run_resize..."
44

5-
python $SPARTAN_SOURCE_DIR/src/CorlDev/automation/scripts/autoCreateDataAndResize.py
5+
python $LABELFUSION_SOURCE_DIR/automation/scripts/autoCreateDataAndResize.py
66

7-
echo "Done."
7+
echo "Done."

automation/scripts/bin/auto_no_trim_prep

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22

33
echo "Auto run_no_trim and run_prep..."
44

5-
python $SPARTAN_SOURCE_DIR/src/CorlDev/automation/scripts/autoNoTrimPrep.py
5+
python $LABELFUSION_SOURCE_DIR/automation/scripts/autoNoTrimPrep.py
66

7-
echo "Done."
7+
echo "Done."

automation/scripts/bin/auto_start_data_collect

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22

33
echo "Auto start data collect..."
44

5-
python $SPARTAN_SOURCE_DIR/src/CorlDev/automation/scripts/autoStartDataCollect.py
5+
python $LABELFUSION_SOURCE_DIR/automation/scripts/autoStartDataCollect.py
66

7-
echo "Done."
7+
echo "Done."

docs/pipeline.rst

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
==================
2+
Under Construction
3+
==================
4+
5+
The documentation in this file has not been updated to reflect the new code layout.
6+
The LabelFusion source code was previously a subdirectory in the Spartan git repository,
7+
and the documentation in this file assumes the old layout. Please do not attempt to
8+
use this documentation until it has been updated.
9+
10+
111
========
212
Pipeline
313
========
@@ -46,7 +56,7 @@ Same as above but we will use the kuka arm to move the xtion around. Set :code:`
4656
In one terminal, open a viewer for the data::
4757

4858
cds && cd apps/iiwa
49-
directorPython -m director.imageviewapp -c iiwaManip.cfg --channel OPENNI_FRAME --rgbd --pointcloud
59+
directorPython -m director.imageviewapp --bot-config $LABELFUSION_SOURCE_DIR/config/bot_frames.cfg --channel OPENNI_FRAME --rgbd --pointcloud
5060

5161
In another terminal, play the log with a GUI. (Replace :code:`mylog.lcmlog` with name of log)::
5262

@@ -199,10 +209,10 @@ The :code:`--logFolder` option specifies which logFolder to use relative to Corl
199209
Visualizing RGBD Data
200210
---------------------
201211

202-
You can launch director with imageviewapp. You need to pass the :code:`-c` flag to director along with the config file::
212+
You can launch director with imageviewapp. You need to pass the :code:`--bot-config` flag to director along with the config file::
203213
204214
cds && cd apps/iiwa
205-
directorPython -m director.imageviewapp -c iiwaManip.cfg --channel OPENNI_FRAME --rgbd --pointcloud
215+
directorPython -m director.imageviewapp --bot-config $LABELFUSION_SOURCE_DIR/config/bot_frames.cfg --channel OPENNI_FRAME --rgbd --pointcloud
206216
207217
208218

0 commit comments

Comments
 (0)