Skip to content

Commit

Permalink
Add the TF prefix parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
civerachb-cpr committed Nov 15, 2024
1 parent 5d6f114 commit 328343f
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions clearpath_config/sensors/types/cameras.py
Original file line number Diff line number Diff line change
Expand Up @@ -951,6 +951,7 @@ class AxisCamera(BaseCamera):
SERIAL = ''

SENSOR_MODEL = 'axis_camera'
TF_PREFIX = 'axis'

HOSTNAME = '192.168.10.0'

Expand Down Expand Up @@ -1009,6 +1010,8 @@ class AxisCamera(BaseCamera):
class ROS_PARAMETER_KEYS:
SERIAL = 'axis_camera.serial'

TF_PREFIX = 'axis_camera.tf_prefix'

HOSTNAME = 'axis_camera.hostname'
HTTP_PORT = 'axis_camera.http_port'

Expand Down Expand Up @@ -1120,6 +1123,8 @@ def __init__(
ros_parameters_template = {
self.ROS_PARAMETER_KEYS.SERIAL: AxisCamera.serial,

self.ROS_PARAMETER_KEYS.TF_PREFIX: AxisCamera.tf_prefix,

self.ROS_PARAMETER_KEYS.HOSTNAME: AxisCamera.hostname,
self.ROS_PARAMETER_KEYS.HTTP_PORT: AxisCamera.http_port,

Expand Down Expand Up @@ -1181,6 +1186,8 @@ def __init__(
xyz,
rpy
)
self.tf_prefix = name

self.hostname = hostname
self.http_port = http_port
self.username = username
Expand Down Expand Up @@ -1235,6 +1242,14 @@ def device_type(self, device_type: str) -> None:
)
self._device_type = device_type

@property
def tf_prefix(self) -> str:
return self._tf_prefix

@tf_prefix.setter
def tf_prefix(self, prefix: str) -> None:
self._tf_prefix = prefix

@property
def hostname(self) -> str:
return self._hostname
Expand Down

0 comments on commit 328343f

Please sign in to comment.