Skip to content

Commit 328343f

Browse files
committed
Add the TF prefix parameter
1 parent 5d6f114 commit 328343f

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

clearpath_config/sensors/types/cameras.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -951,6 +951,7 @@ class AxisCamera(BaseCamera):
951951
SERIAL = ''
952952

953953
SENSOR_MODEL = 'axis_camera'
954+
TF_PREFIX = 'axis'
954955

955956
HOSTNAME = '192.168.10.0'
956957

@@ -1009,6 +1010,8 @@ class AxisCamera(BaseCamera):
10091010
class ROS_PARAMETER_KEYS:
10101011
SERIAL = 'axis_camera.serial'
10111012

1013+
TF_PREFIX = 'axis_camera.tf_prefix'
1014+
10121015
HOSTNAME = 'axis_camera.hostname'
10131016
HTTP_PORT = 'axis_camera.http_port'
10141017

@@ -1120,6 +1123,8 @@ def __init__(
11201123
ros_parameters_template = {
11211124
self.ROS_PARAMETER_KEYS.SERIAL: AxisCamera.serial,
11221125

1126+
self.ROS_PARAMETER_KEYS.TF_PREFIX: AxisCamera.tf_prefix,
1127+
11231128
self.ROS_PARAMETER_KEYS.HOSTNAME: AxisCamera.hostname,
11241129
self.ROS_PARAMETER_KEYS.HTTP_PORT: AxisCamera.http_port,
11251130

@@ -1181,6 +1186,8 @@ def __init__(
11811186
xyz,
11821187
rpy
11831188
)
1189+
self.tf_prefix = name
1190+
11841191
self.hostname = hostname
11851192
self.http_port = http_port
11861193
self.username = username
@@ -1235,6 +1242,14 @@ def device_type(self, device_type: str) -> None:
12351242
)
12361243
self._device_type = device_type
12371244

1245+
@property
1246+
def tf_prefix(self) -> str:
1247+
return self._tf_prefix
1248+
1249+
@tf_prefix.setter
1250+
def tf_prefix(self, prefix: str) -> None:
1251+
self._tf_prefix = prefix
1252+
12381253
@property
12391254
def hostname(self) -> str:
12401255
return self._hostname

0 commit comments

Comments
 (0)