Skip to content

Commit

Permalink
Rename to CubVision
Browse files Browse the repository at this point in the history
  • Loading branch information
tjkr0wn committed Jan 30, 2024
1 parent 8b70cf2 commit fe2f138
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

Northstar is 6328's AprilTag tracking system using OpenCV's ArUco module and NT4. This code is provided for reference, but **we don't have the capacity to assist other teams in using it for custom setups**. Please check out [PhotonVision](https://photonvision.org) or [Limelight](https://limelightvision.io) as community-supported alternatives.

This is a private fork of Northstar, called Cubstar, used by Team 1701 as the software for vision coprocessors.
This is a private fork of Northstar, called CubVision, used by Team 1701 as the software for vision coprocessors.
2 changes: 1 addition & 1 deletion calibration/CalibrationCommandSource.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class NTCalibrationCommandSource(CalibrationCommandSource):
def _init(self, config_store: ConfigStore):
if not self._init_complete:
nt_table = ntcore.NetworkTableInstance.getDefault().getTable(
"CubStar/" + config_store.local_config.device_id + "/calibration")
"CubVision/" + config_store.local_config.device_id + "/calibration")
self._active_entry = nt_table.getBooleanTopic("active").getEntry(False)
self._capture_flag_entry = nt_table.getBooleanTopic("capture_flag").getEntry(False)
self._active_entry.set(False)
Expand Down
2 changes: 1 addition & 1 deletion config.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"device_id": "cubstar",
"device_id": "CubVision",
"server_ip": "127.0.0.1",
"stream_port": 8000
}
4 changes: 2 additions & 2 deletions config/ConfigSource.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def update(self, config_store: ConfigStore) -> None:
# Initialize subscribers on first call
if not self._init_complete:
nt_table = ntcore.NetworkTableInstance.getDefault().getTable(
"CubStar/" + config_store.local_config.device_id + "/config")
"CubVision/" + config_store.local_config.device_id + "/config")
self._camera_id_sub = nt_table.getIntegerTopic("camera_id").subscribe(RemoteConfig.camera_id)
self._camera_resolution_width_sub = nt_table.getIntegerTopic(
"camera_resolution_width").subscribe(RemoteConfig.camera_resolution_width)
Expand All @@ -68,7 +68,7 @@ def update(self, config_store: ConfigStore) -> None:
self._fiducial_size_m_sub = nt_table.getDoubleTopic(
"fiducial_size_m").subscribe(RemoteConfig.fiducial_size_m)

global_config_table = ntcore.NetworkTableInstance.getDefault().getTable("CubStar/config")
global_config_table = ntcore.NetworkTableInstance.getDefault().getTable("CubVision/config")
self._tag_layout_sub = global_config_table.getStringTopic(
"tag_layout").subscribe("")

Expand Down
6 changes: 3 additions & 3 deletions output/OutputPublisher.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ def send(self, config_store: ConfigStore, timestamp: float, fiducial_pose_observ
# Initialize publishers on first call
if not self._init_complete:
nt_table = ntcore.NetworkTableInstance.getDefault().getTable(
"CubStar/" + config_store.local_config.device_id + "/output")
"CubVision/" + config_store.local_config.device_id + "/output")
nt_table = ntcore.NetworkTableInstance.getDefault().getTable(
"CubStar/" + config_store.local_config.device_id + "/output")
"CubVision/" + config_store.local_config.device_id + "/output")
self._observations_pub = nt_table.getRawTopic("observations").publish("ObservationsPacket",
ntcore.PubSubOptions(periodic=0, sendAll=True, keepDuplicates=True))
self._demo_observations_pub = nt_table.getRawTopic("demo_observations").publish("FiducialPoseObservation",
Expand Down Expand Up @@ -91,7 +91,7 @@ def send(self, config_store: ConfigStore, timestamp: float, fiducial_pose_observ
# Initialize publishers on first call
if not self._init_complete:
nt_table = ntcore.NetworkTableInstance.getDefault().getTable(
"CubStar/" + config_store.local_config.device_id + "/output")
"CubVision/" + config_store.local_config.device_id + "/output")
self._observations_pub = nt_table.getDoubleArrayTopic("observations").publish(
ntcore.PubSubOptions(periodic=0, sendAll=True, keepDuplicates=True))
self._demo_observations_pub = nt_table.getDoubleArrayTopic("demo_observations").publish(
Expand Down
2 changes: 1 addition & 1 deletion output/StreamServer.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class StreamingHandler(BaseHTTPRequestHandler):
HTML = """
<html>
<head>
<title>Cubstar Debug</title>
<title>CubVision Debug</title>
<style>
body {
background-color: black;
Expand Down

0 comments on commit fe2f138

Please sign in to comment.