-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Automatic Cerberus Street download and reworked link to edge formation
- Loading branch information
1 parent
8a4972a
commit 08ee525
Showing
5 changed files
with
168 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,4 +6,5 @@ torch | |
pandas | ||
torch_geometric | ||
rosbags | ||
pathlib | ||
pathlib | ||
gdown |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import unittest | ||
from pathlib import Path | ||
from grfgnn import RobotURDF, CerberusStreetDataset | ||
|
||
|
||
class TestCerberusStreetDataset(unittest.TestCase): | ||
|
||
def setUp(self): | ||
# Load the A1 URDF file | ||
self.a1_path = Path( | ||
Path(__file__).cwd(), 'urdf_files', 'A1', 'a1.urdf').absolute() | ||
A1_URDF = RobotURDF(self.a1_path, 'package://a1_description/', | ||
'unitree_ros/robots/a1_description', True) | ||
|
||
# Create the dataset | ||
self.dataset_path = Path( | ||
Path(__file__).cwd(), 'datasets', 'cerberus_street') | ||
dataset = CerberusStreetDataset(self.dataset_path, A1_URDF) | ||
|
||
def test_download_and_processing(self): | ||
""" | ||
Check that the Dataset class successfully downloads and processes | ||
the data. | ||
""" | ||
|
||
self.bag_path = self.dataset_path / 'raw' / 'street.bag' | ||
self.assertTrue(self.bag_path.is_file()) | ||
self.processed_txt_path = self.dataset_path / 'processed' / 'processed.txt' | ||
self.assertTrue(self.processed_txt_path.is_file()) | ||
|
||
|
||
if __name__ == '__main__': | ||
unittest.main() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters