Skip to content

KitFung/BATsNet

Repository files navigation

BATsNet

The codebase of the smart lamppost system.

Used in the BAT side: bat_side

Used in the server side: server_side

Provide the underlying function and interface in fog side: common, data_collector, device, python, scheduler, transport, service_discovery

Related to the sensor: camera, radar_iwr6843, lidar

Used in fog side, but not used by the user task or sensor: fog_size

Download this library

git clone --recurse-submodules -j8 git://github.com/KitFung/BATsNet

Build

mkdir build
cd build
cmake -DIN_FOG=ON ..
make -j4
sudo make install

Dependency


sudo apt update && sudo apt install -y libmosquitto-dev \
    libmosquittopp-dev libssl-dev liblz4-dev \
    build-essential pkg-config \
    cmake autoconf automake libtool curl make g++ unzip \
    python3.6-dev libboost-all-dev libyaml-cpp-dev libpcap-dev

# protobuf
curl -LO https://github.com/protocolbuffers/protobuf/releases/download/v3.12.3/protobuf-all-3.12.3.tar.gz
tar zxvf protobuf-all-3.12.3.tar.gz
pushd protobuf-3.12.3/
./autogen.sh
./configure
make
sudo make install
sudo ldconfig
popd

# pybind11
git clone https://github.com/pybind/pybind11.git
pushd pybind11
mkdir build
pushd build
cmake .. && make -j
sudo make install
popd
popd

# grpc
git clone https://github.com/grpc/grpc.git
pushd grpc/
git submodule update --init
mkdir -p cmake/build
pushd cmake/build
cmake -DgRPC_INSTALL=ON       -DgRPC_BUILD_TESTS=OFF  -DBUILD_SHARED_LIBS=ON     ../..
# cmake -DgRPC_INSTALL=ON -DgRPC_PROTOBUF_PROVIDER=package -DgRPC_ZLIB_PROVIDER=package -DgRPC_CARES_PROVIDER=package -DgRPC_SSL_PROVIDER=package -DgRPC_BUILD_TESTS=OFF  -DBUILD_SHARED_LIBS=ON     ../.. 
make -j8
sudo make install
popd
popd


# casablanca
sudo apt-get install g++ git libboost-atomic-dev \
 libboost-thread-dev libboost-system-dev libboost-date-time-dev \
 libboost-regex-dev libboost-filesystem-dev libboost-random-dev \
 libboost-chrono-dev libboost-serialization-dev libboost-locale-dev \
 libwebsocketpp-dev openssl libssl-dev ninja-build
git clone https://github.com/Microsoft/cpprestsdk.git casablanca
pushd casablanca
mkdir build.release
pushd build.release
cmake -G Ninja .. -DCMAKE_BUILD_TYPE=Release
ninja
sudo ninja install
popd
popd


About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published