Skip to content
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

Move useful code from subt to osgar #965

Merged
merged 7 commits into from
Nov 1, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions _deprecated/subt_graveyard/r2.json
Original file line number Diff line number Diff line change
Expand Up @@ -96,15 +96,15 @@
}
},
"fromrospy": {
"driver": "subt.pull:Pull",
"driver": "osgar.drivers.pull:Pull",
"init": {
"outputs": ["acc", "battery_state", "score", "pose3d", "gas_detected",
"scan_front", "scan_rear", "rgbd_front:null", "rgbd_rear:null",
"robot_name", "points:gz"]
}
},
"torospy": {
"driver": "subt.push:Push"
"driver": "osgar.drivers.push:Push"
},
"logimage": {
"driver": "subt.image_extractor:ImageExtractor",
Expand Down
4 changes: 2 additions & 2 deletions config/deedee-subt.json
Original file line number Diff line number Diff line change
Expand Up @@ -190,14 +190,14 @@
}
},
"fromros": {
"driver": "subt.pull:Pull",
"driver": "osgar.drivers.pull:Pull",
"out": "scan360",
"init": {
"outputs": ["scan360"]
}
},
"toros": {
"driver": "subt.push:Push"
"driver": "osgar.drivers.push:Push"
},
"sec_timer": {
"driver": "timer",
Expand Down
8 changes: 4 additions & 4 deletions config/jetson-node-k2-front.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,22 @@
"modules":
{
"transmitter": {
"driver": "subt.push:Push",
"driver": "osgar.drivers.push:Push",
"init": {
"bind": true,
"endpoint": "tcp://*:5557"
}
},
"from_apu_receiver":{
"driver": "subt.pull:Pull",
"driver": "osgar.drivers.pull:Pull",
"init": {
"bind": true,
"endpoint": "tcp://*:5558",
"outputs": ["joint_angle_pose", "pose3d"]
}
},
"from_jetson_rear_receiver":{
"driver": "subt.pull:Pull",
"driver": "osgar.drivers.pull:Pull",
"init": {
"bind": true,
"endpoint": "tcp://*:5560",
Expand Down Expand Up @@ -92,7 +92,7 @@
}
},
"toros": {
"driver": "subt.push:Push"
"driver": "osgar.drivers.push:Push"
}
},
"links": [
Expand Down
6 changes: 3 additions & 3 deletions config/jetson-node-k2-rear.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,14 @@
}
},
"transmitter": {
"driver": "subt.push:Push",
"driver": "osgar.drivers.push:Push",
"init": {
"bind": true,
"endpoint": "tcp://*:5557"
}
},
"receiver":{
"driver": "subt.pull:Pull",
"driver": "osgar.drivers.pull:Pull",
"init": {
"bind": true,
"endpoint": "tcp://*:5558",
Expand All @@ -69,7 +69,7 @@
}
},
"to_front_jetson": {
"driver": "subt.push:Push",
"driver": "osgar.drivers.push:Push",
"init": {
"endpoint": "tcp://192.168.0.23:5560"
}
Expand Down
12 changes: 6 additions & 6 deletions config/kloubak2-subt-estop-lora-jetson.json
Original file line number Diff line number Diff line change
Expand Up @@ -160,33 +160,33 @@
"init": {"port": "/dev/gas_detector", "speed": 115200}
},
"localization": {
"driver": "subt.odoimuloc:Localization",
"driver": "osgar.drivers.odoimuloc:Localization",
"in": ["orientation", "odom"],
"out": ["pose3d"],
"init":{}
},
"from_jetson_front": {
"driver": "subt.pull:Pull",
"driver": "osgar.drivers.pull:Pull",
"init": {
"endpoint": "tcp://192.168.0.23:5557",
"outputs": ["pose3d", "depth", "scan360", "points"]
}
},
"from_jetson_rear": {
"driver": "subt.pull:Pull",
"driver": "osgar.drivers.pull:Pull",
"init": {
"endpoint": "tcp://192.168.0.24:5557",
"outputs": ["pose3d", "depth", "localized_artf", "debug_image", "localized_artf_rear", "debug_image_rear"]
}
},
"to_jetson_rear": {
"driver": "subt.push:Push",
"driver": "osgar.drivers.push:Push",
"init": {
"endpoint": "tcp://192.168.0.24:5558"
}
},
"to_jetson_front": {
"driver": "subt.push:Push",
"driver": "osgar.drivers.push:Push",
"init": {
"endpoint": "tcp://192.168.0.23:5558"
}
Expand Down Expand Up @@ -224,7 +224,7 @@
}
},
"fromros": {
"driver": "subt.pull:Pull",
"driver": "osgar.drivers.pull:Pull",
"out": ["scan360", "points"],
"init": {
"endpoint": "tcp://192.168.0.23:5565",
Expand Down
4 changes: 2 additions & 2 deletions config/skiddy-subt-serialloop.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"init": {"port": "/dev/ttyACM0", "speed": 115200, "timeout": 0.02}
},
"fromapp": {
"driver": "subt.pull:Pull",
"driver": "osgar.drivers.pull:Pull",
"out": ["raw"],
"init": {
"endpoint": "tcp://127.0.0.1:5590",
Expand All @@ -18,7 +18,7 @@
}
},
"toapp": {
"driver": "subt.push:Push",
"driver": "osgar.drivers.push:Push",
"init": {
"endpoint": "tcp://127.0.0.1:5591",
"bind": true
Expand Down
10 changes: 5 additions & 5 deletions config/skiddy-subt.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,20 +31,20 @@
"init": {}
},
"toserial": {
"driver": "subt.push:Push",
"driver": "osgar.drivers.push:Push",
"init": {
"endpoint": "tcp://127.0.0.1:5590"
}
},
"fromserial": {
"driver": "subt.pull:Pull",
"driver": "osgar.drivers.pull:Pull",
"init": {
"endpoint": "tcp://127.0.0.1:5591",
"outputs": ["raw"]
}
},
"localization": {
"driver": "subt.odoimuloc:Localization",
"driver": "osgar.drivers.odoimuloc:Localization",
"in": ["orientation", "odom"],
"out": ["pose3d"],
"init":{}
Expand Down Expand Up @@ -245,7 +245,7 @@
}
},
"fromros": {
"driver": "subt.pull:Pull",
"driver": "osgar.drivers.pull:Pull",
"out": ["scan360", "points"],
"init": {
"outputs": ["scan360", "points"]
Expand All @@ -260,7 +260,7 @@
}
},
"toros": {
"driver": "subt.push:Push"
"driver": "osgar.drivers.push:Push"
},
"sec_timer": {
"driver": "timer",
Expand Down
2 changes: 1 addition & 1 deletion config/test-pull_zmq.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"robot": {
"modules": {
"pull": {
"driver": "subt.pull:Pull",
"driver": "osgar.drivers.pull:Pull",
"init": {
"endpoint": "tcp://192.168.0.23:5557",
"outputs": ["localized_artf", "debug_image"]
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion subt/test_odoimuloc.py → osgar/drivers/test_odoimuloc.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from osgar.lib import quaternion
from osgar.lib.unittest import TestCase

from subt.odoimuloc import Localization
from osgar.drivers.odoimuloc import Localization


class LocalizationTest(TestCase):
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import unittest
import math

from subt.local_planner import LocalPlanner, LocalPlannerRef, LocalPlannerOpt, LocalPlannerNumpy
from osgar.lib.local_planner import LocalPlanner, LocalPlannerRef, LocalPlannerOpt, LocalPlannerNumpy


class SubTChallengeTest(unittest.TestCase):
Expand Down
4 changes: 2 additions & 2 deletions subt/config/coro_pam.json
Original file line number Diff line number Diff line change
Expand Up @@ -118,15 +118,15 @@
}
},
"fromrospy": {
"driver": "subt.pull:Pull",
"driver": "osgar.drivers.pull:Pull",
"init": {
"outputs": ["acc", "top_scan", "bottom_scan", "pose3d", "battery_state", "score", "gas_detected",
"rgbd_front:null", "rgbd_left:null", "rgbd_right:null",
"air_pressure", "scan360", "slopes", "octomap:gz", "robot_name"]
}
},
"torospy": {
"driver": "subt.push:Push"
"driver": "osgar.drivers.push:Push"
},
"logimage": {
"driver": "subt.image_extractor:ImageExtractor",
Expand Down
2 changes: 1 addition & 1 deletion subt/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
from osgar.lib.lidar_pts import equal_scans
from osgar.lib.loop import LoopDetector

from subt.local_planner import LocalPlanner
from osgar.lib.local_planner import LocalPlanner
from subt.trace import Trace, distance3D
from subt.name_decoder import parse_robot_name

Expand Down
2 changes: 1 addition & 1 deletion subt/octomap.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"robot": {
"modules": {
"fromrospy": {
"driver": "subt.pull:Pull",
"driver": "osgar.drivers.pull:Pull",
"init": {
"outputs": ["rot", "acc", "orientation", "battery_state", "score", "pose3d",
"image_front", "image_rear", "scan_front", "scan_rear", "depth_front:null", "depth_rear:null",
Expand Down
4 changes: 2 additions & 2 deletions subt/zmq-subt-x2.json
Original file line number Diff line number Diff line change
Expand Up @@ -81,15 +81,15 @@
}
},
"fromrospy": {
"driver": "subt.pull:Pull",
"driver": "osgar.drivers.pull:Pull",
"init": {
"outputs": ["acc", "battery_state", "score", "pose3d", "gas_detected", "joint_angle",
"scan_front", "scan_rear", "scan360", "rgbd_front:null", "rgbd_rear:null",
"robot_name", "octomap:gz", "camera_left:null", "camera_right:null"]
}
},
"torospy": {
"driver": "subt.push:Push"
"driver": "osgar.drivers.push:Push"
},
"twister": {
"driver": "subt.twistwrap:TwistWrap"
Expand Down
4 changes: 2 additions & 2 deletions subt/zmq-subt-x4.json
Original file line number Diff line number Diff line change
Expand Up @@ -117,14 +117,14 @@
}
},
"fromrospy": {
"driver": "subt.pull:Pull",
"driver": "osgar.drivers.pull:Pull",
"init": {
"outputs": ["acc", "top_scan", "bottom_scan", "pose3d", "battery_state", "score", "gas_detected",
"rgbd_front:null", "air_pressure", "scan360", "octomap:gz", "robot_name", "slopes"]
}
},
"torospy": {
"driver": "subt.push:Push"
"driver": "osgar.drivers.push:Push"
},
"logimage": {
"driver": "subt.image_extractor:ImageExtractor",
Expand Down
Loading