Skip to content
This repository was archived by the owner on Jan 7, 2023. It is now read-only.

Merge common files in OA and Visualizer tool #112

Merged
merged 1 commit into from
Nov 11, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion object_analytics_node/src/common/frame.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#include "frame.hpp"
#include "common/frame.hpp"

sFrame::sFrame(cv::Mat & cv_frame)
{
Expand Down
2 changes: 1 addition & 1 deletion object_analytics_node/src/common/frame_obj.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#include "frame_obj.hpp"
#include "common/frame_obj.hpp"

void FrameObjs::genFrame(cv::Mat & cv_frame, int idx)
{
Expand Down
2 changes: 1 addition & 1 deletion object_analytics_node/src/dataset/tr_dataset.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#include <string>
#include <vector>

#include "object_analytics_node/dataset/track_dataset.hpp"
#include "dataset/track_dataset.hpp"

namespace datasets
{
Expand Down
2 changes: 1 addition & 1 deletion object_analytics_node/src/dataset/trvid_dataset.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#include <fstream>
#include <string>
#include <vector>
#include "object_analytics_node/dataset/track_dataset.hpp"
#include "dataset/track_dataset.hpp"
#include "util/logger.hpp"

namespace datasets
Expand Down
22 changes: 13 additions & 9 deletions object_analytics_node/src/visualizer/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,19 +36,22 @@ endif()
find_package(Pangolin REQUIRED)
find_package(OpenCV 3.2 REQUIRED)

SET(OA_ROOT "${CMAKE_SOURCE_DIR}/../..")
SET(OA_SRC "${OA_ROOT}/src")
SET(OA_INCLUDE "${OA_ROOT}/include/object_analytics_node")

include_directories(
include
utils
device
render_object
view
control
data
data/dataset
model
model/stat
model/sample
$(CMAKE_CURRENT_SOURCE_DIR)
${CMAKE_SOURCE_DIR}
${OA_INCLUDE}
)

add_executable(oa_viewer
Expand All @@ -65,12 +68,13 @@ add_executable(oa_viewer
render_object/render_lines.cpp
render_object/render_rect.cpp
render_object/render_ellipse.cpp
data/frame.cpp
data/frame_obj.cpp
data/dataset/tr_dataset.cpp
data/dataset/trimg_dataset.cpp
data/dataset/trvid_dataset.cpp
data/dataset/trimg_MTdataset.cpp
${OA_SRC}/util/logger.cpp
${OA_SRC}/common/frame.cpp
${OA_SRC}/common/frame_obj.cpp
${OA_SRC}/dataset/tr_dataset.cpp
${OA_SRC}/dataset/trimg_dataset.cpp
${OA_SRC}/dataset/trvid_dataset.cpp
${OA_SRC}/dataset/trimg_MTdataset.cpp
model/math_model.cpp
model/math_sample.cpp
model/stat/stat_model.cpp
Expand Down
2 changes: 1 addition & 1 deletion object_analytics_node/src/visualizer/control/control.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
#include "view.hpp"
#include "stream_device.hpp"

#include "utility.hpp"
#include "util/logger.hpp"


class Control
Expand Down
4 changes: 2 additions & 2 deletions object_analytics_node/src/visualizer/control/control_ds.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@

#include "math_sample.hpp"

#include "utility.hpp"
#include "util/logger.hpp"

#include "control.hpp"
#include "frame_obj.hpp"
#include "common/frame_obj.hpp"

class ControlDS : public Control
{
Expand Down
39 changes: 0 additions & 39 deletions object_analytics_node/src/visualizer/data/dataset/tr_dataset.cpp

This file was deleted.

208 changes: 0 additions & 208 deletions object_analytics_node/src/visualizer/data/dataset/track_dataset.hpp

This file was deleted.

Loading