ltcodecs
Advanced tools
+1
-1
| Metadata-Version: 2.4 | ||
| Name: ltcodecs | ||
| Version: 4.0.0 | ||
| Version: 4.0.1 | ||
| Summary: LT Codecs: Lightweight codecs for use over low-throughput links | ||
@@ -5,0 +5,0 @@ Author: Woods Hole Oceanographic Institution, Acoustic Communications Group |
| Metadata-Version: 2.4 | ||
| Name: ltcodecs | ||
| Version: 4.0.0 | ||
| Version: 4.0.1 | ||
| Summary: LT Codecs: Lightweight codecs for use over low-throughput links | ||
@@ -5,0 +5,0 @@ Author: Woods Hole Oceanographic Institution, Acoustic Communications Group |
@@ -26,2 +26,3 @@ """ | ||
| epoch_end=(2**31 - 1), | ||
| ros_type: str | None = None, | ||
| **kwargs, | ||
@@ -32,2 +33,10 @@ ) -> None: | ||
| self.precision = int(precision) | ||
| if ros_type is None: | ||
| self.ros_type = None | ||
| else: | ||
| pkg_name = ros_type.split("/")[0] | ||
| msg_name = ros_type.split("/")[-1] | ||
| self.ros_type = armw.import_message(pkg_name, msg_name) | ||
| if not self.ros_type: | ||
| raise ValueError(f"RosTimeCodec: Unable to load {ros_type} message class") | ||
@@ -78,3 +87,7 @@ self.value_range = int( | ||
| value = armw.Time.from_sec(self.min_value + float_offset) | ||
| return armw.get_native_time_object(value) | ||
| if not self.ros_type: | ||
| return armw.get_native_time_object(value) | ||
| else: | ||
| value_msg = self.ros_type() | ||
| return armw.fill_time(value_msg, value) | ||
@@ -81,0 +94,0 @@ @property |
@@ -5,3 +5,3 @@ FROM ros:noetic-ros-core | ||
| RUN apt-get update && apt-get upgrade -y | ||
| RUN apt install python3-pip git -y | ||
| RUN apt install python3-pip git ros-noetic-dynamic-reconfigure -y | ||
| RUN pip install -U pytest pytest-cov |
Alert delta unavailable
Currently unable to show alert delta for PyPI packages.
113153
0.5%1865
0.7%