2024-05-05 09:14:41 +08:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
GREEN='\033[0;32m'
|
|
|
|
NC='\033[0m' # No Color
|
|
|
|
|
|
|
|
echo -e "${GREEN} Starting DDS type generation...${NC}"
|
|
|
|
# Clean
|
2024-05-05 12:11:18 +08:00
|
|
|
# rm -r ../unitree_go
|
|
|
|
rm -r ../go2py_messages
|
2024-05-05 09:14:41 +08:00
|
|
|
|
|
|
|
# Make
|
2024-05-05 12:11:18 +08:00
|
|
|
for file in dds_messages/*.idl
|
2024-05-05 09:14:41 +08:00
|
|
|
do
|
|
|
|
echo "Processing $file file..."
|
|
|
|
idlc -l py $file
|
|
|
|
done
|
2024-05-05 12:11:18 +08:00
|
|
|
# mv unitree_go ../
|
|
|
|
mv go2py_messages ../
|