-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Extended driver to include multi-sensor interfaces and sensors simulators introduced for robust testing. Co-authored-by: Shahrukh <[email protected]>
- Loading branch information
1 parent
df1c9cc
commit 9eacd9a
Showing
43 changed files
with
1,708 additions
and
1,345 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"name": "Com Lib Config", | ||
"version": "1.0.0", | ||
"client_id": 100, | ||
"role": "slave", | ||
"shared_lib_path": "/code/umrr_ros2_driver/smartmicro/lib-linux-x86_64-gcc_9", | ||
"config_path": "/code/simulator/config_umrr11", | ||
"user_interface_name": "umrr11_t132_automotive", | ||
"user_interface_major_v": 1, | ||
"user_interface_minor_v": 1, | ||
"user_interface_patch_v": 1, | ||
"download_path": "", | ||
"instruction_serialization_type": "port_based", | ||
"data_serialization_type": "port_based", | ||
"alive": false | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"hwItems": [ | ||
{ | ||
"type": "eth", | ||
"dev_id": 1, | ||
"iface_name": "eth0", | ||
"port": 55555 | ||
} | ||
], | ||
"name": "HW inventory List", | ||
"version": "1.1.0" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"clients": [ | ||
{ | ||
"client_id": 1, | ||
"data_serialization_type": "port_based", | ||
"instruction_serialization_type": "port_based", | ||
"ip": "172.22.10.100", | ||
"link_type": "eth", | ||
"port": 55555 | ||
} | ||
], | ||
"name": "Client Routing Table", | ||
"version": "1.0.0" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"name": "Com Lib Config", | ||
"version": "1.0.0", | ||
"client_id": 200, | ||
"role": "slave", | ||
"shared_lib_path": "/code/umrr_ros2_driver/smartmicro/lib-linux-x86_64-gcc_9", | ||
"config_path": "/code/simulator/config_umrr96", | ||
"user_interface_name": "umrr96_t153_automotive", | ||
"user_interface_major_v": 1, | ||
"user_interface_minor_v": 2, | ||
"user_interface_patch_v": 1, | ||
"download_path": "", | ||
"instruction_serialization_type": "port_based", | ||
"data_serialization_type": "port_based", | ||
"alive": false | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"hwItems": [ | ||
{ | ||
"type": "eth", | ||
"dev_id": 1, | ||
"iface_name": "eth0", | ||
"port": 55555 | ||
} | ||
], | ||
"name": "HW inventory List", | ||
"version": "1.1.0" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"clients": [ | ||
{ | ||
"client_id": 1, | ||
"data_serialization_type": "port_based", | ||
"instruction_serialization_type": "port_based", | ||
"ip": "172.22.10.100", | ||
"link_type": "eth", | ||
"port": 55555 | ||
} | ||
], | ||
"name": "Client Routing Table", | ||
"version": "1.0.0" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
project(SensorSimulator) | ||
|
||
cmake_minimum_required(VERSION 3.13) | ||
|
||
set(CMAKE_SYSTEM_NAME Linux) | ||
set(CMAKE_C_COMPILER gcc) | ||
set(CMAKE_CXX_COMPILER g++) | ||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -m64 -fPIC") | ||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -pthread -m64 -fPIC") | ||
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -m64 -fPIC") | ||
|
||
link_directories(${CMAKE_CURRENT_SOURCE_DIR}/${SMART_ACCESS_LIB_FOLDER}) | ||
|
||
add_executable(simulator | ||
src/simulator.cpp) | ||
|
||
target_include_directories(simulator PUBLIC | ||
../../umrr_ros2_driver/smartmicro/include | ||
umrr_ros2_driver/smartmicro/include/umrr11_t132_automotive_v1_1_1 | ||
umrr_ros2_driver/smartmicro/include/umrr96_t153_automotive_v1_2_1) | ||
|
||
target_link_libraries(simulator | ||
com_lib | ||
osal | ||
umrr11_t132_automotivev1.1.1_user_interface | ||
umrr96_t153_automotivev1.2.1_user_interface | ||
dl) | ||
|
||
install(TARGETS simulator DESTINATION bin) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/usr/bin/env bash | ||
work_dir=$(pwd) | ||
set -e | ||
|
||
cd /code/simulator/simulation | ||
|
||
mkdir -p build_dir | ||
cmake -G "Unix Makefiles" -S. -Bbuild_dir \ | ||
-DCMAKE_INSTALL_PREFIX=out \ | ||
-DSMART_ACCESS_LIB_FOLDER=../../umrr_ros2_driver/smartmicro/lib-linux-x86_64-gcc_9 | ||
make -C build_dir | ||
make -C build_dir install |
Oops, something went wrong.