Skip to content

Commit

Permalink
v1.17.6
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonathan Allen committed Dec 18, 2019
1 parent b7154fe commit 62a1212
Show file tree
Hide file tree
Showing 58 changed files with 55 additions and 19 deletions.
5 changes: 5 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Cepton SDK Release Notes

## Version 1.17.6 2019-12-17

- Minor CeptonViewer bugfixes.
- Improve `cepton_capture_gui.py`.

## Version 1.17.5 2019-12-10

- Add `cepton_clip.py` tool.
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.17.5
1.17.6
Binary file modified bin/linux-aarch64/CeptonViewer
Binary file not shown.
Binary file modified bin/linux-i386/CeptonViewer
Binary file not shown.
Binary file modified bin/linux-x86_64/CeptonViewer
Binary file not shown.
Binary file modified bin/osx/CeptonViewer.app/Contents/MacOS/CeptonViewer
Binary file not shown.
Binary file modified bin/win64/CeptonViewer.exe
Binary file not shown.
Binary file modified bin/win64/cepton_sdk.dll
Binary file not shown.
2 changes: 1 addition & 1 deletion csharp/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.17.5
1.17.6
Binary file modified csharp/cepton_cs_sdk/cepton_sdk.dll
Binary file not shown.
Binary file modified docs/cepton_sdk.pdf
Binary file not shown.
4 changes: 2 additions & 2 deletions include/cepton_sdk_impl/cepton_sdk.inc
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ inline std::string SensorError::create_message(SensorErrorCode code,
}

inline void SensorError::check_used() const {
CEPTON_ASSERT(!m_code || m_used, std::string("Error not used: ") + what());
CEPTON_ASSERT(!m_code || m_used, std::string("Error not used: ") + what()); // NOLINT
}

namespace internal {
Expand Down Expand Up @@ -176,4 +176,4 @@ inline SensorError process_error(const std::string &file, int line,
}
} // namespace internal

} // namespace cepton_sdk
} // namespace cepton_sdk
Binary file modified lib/linux-aarch64/libcepton_sdk.a
Binary file not shown.
Binary file modified lib/linux-aarch64/libcepton_sdk.so
Binary file not shown.
Binary file modified lib/linux-arm/libcepton_sdk.a
Binary file not shown.
Binary file modified lib/linux-arm/libcepton_sdk.so
Binary file not shown.
Binary file modified lib/linux-i386/libcepton_sdk.a
Binary file not shown.
Binary file modified lib/linux-i386/libcepton_sdk.so
Binary file not shown.
Binary file modified lib/linux-x86_64/libcepton_sdk.a
Binary file not shown.
Binary file modified lib/linux-x86_64/libcepton_sdk.so
Binary file not shown.
Binary file modified lib/osx/libcepton_sdk.a
Binary file not shown.
Binary file modified lib/osx/libcepton_sdk.dylib
Binary file not shown.
Binary file modified lib/win64/cepton_sdk.lib
Binary file not shown.
2 changes: 1 addition & 1 deletion matlab/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.17.5
1.17.6
Binary file modified matlab/cepton_sdk.mltbx
Binary file not shown.
4 changes: 2 additions & 2 deletions matlab/include/cepton_sdk_impl/cepton_sdk.inc
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ inline std::string SensorError::create_message(SensorErrorCode code,
}

inline void SensorError::check_used() const {
CEPTON_ASSERT(!m_code || m_used, std::string("Error not used: ") + what());
CEPTON_ASSERT(!m_code || m_used, std::string("Error not used: ") + what()); // NOLINT
}

namespace internal {
Expand Down Expand Up @@ -176,4 +176,4 @@ inline SensorError process_error(const std::string &file, int line,
}
} // namespace internal

} // namespace cepton_sdk
} // namespace cepton_sdk
Binary file modified matlab/lib/linux-aarch64/libcepton_sdk_matlab.so
Binary file not shown.
Binary file modified matlab/lib/linux-arm/libcepton_sdk_matlab.so
Binary file not shown.
Binary file modified matlab/lib/linux-i386/libcepton_sdk_matlab.so
Binary file not shown.
Binary file modified matlab/lib/linux-x86_64/libcepton_sdk_matlab.so
Binary file not shown.
Binary file modified matlab/lib/osx/libcepton_sdk_matlab.dylib
Binary file not shown.
Binary file modified matlab/lib/win64/cepton_sdk_matlab.dll
Binary file not shown.
Binary file modified python/cepton_sdk/lib/linux-aarch64/libcepton_sdk.so
Binary file not shown.
Binary file modified python/cepton_sdk/lib/linux-arm/libcepton_sdk.so
Binary file not shown.
Binary file modified python/cepton_sdk/lib/linux-i386/libcepton_sdk.so
Binary file not shown.
Binary file modified python/cepton_sdk/lib/linux-x86_64/libcepton_sdk.so
Binary file not shown.
Binary file modified python/cepton_sdk/lib/osx/libcepton_sdk.dylib
Binary file not shown.
Binary file modified python/cepton_sdk/lib/win64/cepton_sdk.dll
Binary file not shown.
2 changes: 1 addition & 1 deletion python/cepton_util/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.17.5
1.17.6
12 changes: 10 additions & 2 deletions python/cepton_util/capture.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def get_all_camera_devices():
raise NotImplementedError("OS not supported!")


def process_video(input_path):
def process_video(input_path, **kwargs):
output_path = modify_path(input_path, postfix="_tmp")
cmd_list = [
"ffmpeg",
Expand Down Expand Up @@ -80,12 +80,14 @@ def __init__(self, video_device, output_path, video_size="1920x1080", **kwargs):
self._proc = execute_command(cmd_list, **options)

def close(self):
if self._proc is None:
return
try:
self._proc.close()
except:
pass
self._proc = None
process_video(self.output_path)
run_background(process_video, args=(self.output_path,))


def find_network_interface():
Expand Down Expand Up @@ -125,6 +127,8 @@ def __init__(self, output_path, interface=None, **kwargs):
self._proc = execute_command(cmd_list, **options)

def close(self):
if self._proc is None:
return
try:
self._proc.close()
except:
Expand Down Expand Up @@ -156,6 +160,8 @@ def __init__(self, ros_topics, output_path, **kwargs):
self._proc = execute_command(cmd_list, **options)

def close(self):
if self._proc is None:
return
try:
self._proc.close()
except:
Expand All @@ -181,6 +187,8 @@ def __init__(self, port, output_path, **kwargs):
self._proc = execute_command(cmd_list, **options)

def close(self):
if self._proc is None:
return
try:
self._proc.close()
except:
Expand Down
12 changes: 12 additions & 0 deletions python/cepton_util/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -265,11 +265,23 @@ def wait_on_background():
del __local["threads"][:]


def _cleanup_background():
__local["procs"] = [
proc for proc in __local["procs"] if proc.proc.poll() is None]
__local["threads"] = [
thread for thread in __local["threads"] if thread.thread.is_alive()]


def kill_background():
del __local["procs"][:]
del __local["threads"][:]


def has_background():
_cleanup_background()
return __local["procs"] or __local["threads"]


def run_background(func, args=(), kwargs={}):
thread = BackgroundThread(target=func, args=args, kwargs=kwargs)
thread.thread.start()
Expand Down
2 changes: 2 additions & 0 deletions python/tools/cepton_capture.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,9 @@ def main():
for i, port in enumerate(serial_ports):
SerialCapture(port, capture.serial_path(i))

print("Capturing...")
capture.wait()
print("Processing...")


if __name__ == "__main__":
Expand Down
19 changes: 14 additions & 5 deletions python/tools/cepton_capture_gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,10 @@ def __init__(self):

self.window.show()

def __del__(self):
self.stop()

def on_close(self, *args):
self._update_timer.stop()
self.stop()
wait_on_background()

def update(self):
for f in self.update_callbacks:
Expand Down Expand Up @@ -294,13 +293,23 @@ def create_toolbox_info(self, parent_layout):

# Path
path_input = VariableLabel()
layout.addRow("Path", path_input)
layout.addRow("Path:", path_input)

# Length
length_input = QLabel()
layout.addRow("Length", length_input)
layout.addRow("Length:", length_input)

# Status
status_input = QLabel()
layout.addRow("Status:", status_input)

def update():
if self.is_started:
status_input.setText("Capturing")
elif has_background():
status_input.setText("Processing")
else:
status_input.setText("Done")
if self.capture is None:
return
path_input.setText(self.capture.path)
Expand Down
2 changes: 1 addition & 1 deletion ros/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.17.5
1.17.6
2 changes: 1 addition & 1 deletion ros/third_party/cepton_sdk/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.17.5
1.17.6
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ inline std::string SensorError::create_message(SensorErrorCode code,
}

inline void SensorError::check_used() const {
CEPTON_ASSERT(!m_code || m_used, std::string("Error not used: ") + what());
CEPTON_ASSERT(!m_code || m_used, std::string("Error not used: ") + what()); // NOLINT
}

namespace internal {
Expand Down Expand Up @@ -176,4 +176,4 @@ inline SensorError process_error(const std::string &file, int line,
}
} // namespace internal

} // namespace cepton_sdk
} // namespace cepton_sdk
Binary file modified ros/third_party/cepton_sdk/lib/linux-aarch64/libcepton_sdk.so
Binary file not shown.
Binary file modified ros/third_party/cepton_sdk/lib/linux-arm/libcepton_sdk.so
Binary file not shown.
Binary file modified ros/third_party/cepton_sdk/lib/linux-i386/libcepton_sdk.so
Binary file not shown.
Binary file modified ros/third_party/cepton_sdk/lib/linux-x86_64/libcepton_sdk.so
Binary file not shown.
Binary file modified ros/third_party/cepton_sdk/lib/osx/libcepton_sdk.dylib
Binary file not shown.
Binary file modified ros/third_party/cepton_sdk/lib/win64/cepton_sdk.dll
Binary file not shown.
Binary file modified setup/cepton_sdk-linux-aarch64.deb
Binary file not shown.
Binary file modified setup/cepton_sdk-linux-arm.deb
Binary file not shown.
Binary file modified setup/cepton_sdk-linux-i386.deb
Binary file not shown.
Binary file modified setup/cepton_sdk-linux-x86_64.deb
Binary file not shown.
Binary file modified setup/cepton_sdk-osx.dmg
Binary file not shown.
Binary file modified setup/cepton_sdk-win64.exe
Binary file not shown.

0 comments on commit 62a1212

Please sign in to comment.