2024-01-04 03:15:04 +08:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
GREEN='\033[0;32m'
|
|
|
|
NC='\033[0m' # No Color
|
|
|
|
|
2024-01-04 03:45:40 +08:00
|
|
|
echo -e "${GREEN} Starting DDS type generation...${NC}"
|
2024-01-04 03:15:04 +08:00
|
|
|
# Clean
|
|
|
|
rm -r msgs
|
|
|
|
# Make
|
|
|
|
for file in idl/*.idl
|
|
|
|
do
|
|
|
|
echo "Processing $file file..."
|
|
|
|
idlc -l py $file
|
|
|
|
done
|
|
|
|
mkdir msgs/cpp
|
|
|
|
cd msgs/cpp
|
|
|
|
for file in ../../idl/*.idl
|
|
|
|
do
|
|
|
|
echo "Processing $file file..."
|
|
|
|
idlc -l ../../idl/libcycloneddsidlcxx.so.0.10.2 $file
|
|
|
|
done
|
2024-01-04 03:45:40 +08:00
|
|
|
cd ../..
|
|
|
|
rm -r ../cpp_bridge/include/go2py
|
|
|
|
mv msgs/cpp ../cpp_bridge/include/go2py
|
|
|
|
echo -e "${GREEN} Done with DDS type generation${NC}"
|