Skip to content

Commit cd7c3d2

Browse files
committed
Update library_generation.sh with changes check
1 parent 2840b32 commit cd7c3d2

File tree

2 files changed

+14
-4
lines changed

2 files changed

+14
-4
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,3 +136,4 @@ see the file [3rd-party-licenses.txt](3rd-party-licenses.txt).
136136
- When using provided precompiled libraries, users should take into account the already configured static memory pools in middleware layers. [More info here](https://micro-ros.github.io/docs/tutorials/core/microxrcedds_rmw_configuration/).
137137
- micro-ROS transports should be refactored in order to provide a pluggable mechanims. Only USB serial transports are provided.
138138
- Teensyduino support files have to be patched in order to use precompiled libraries.
139+
- To solve Python errors on ESP32 compilation: `apt install python-is-python3 && pip3 install pyserial`

extras/library_generation/library_generation.sh

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,19 @@ pushd firmware/mcu_ws > /dev/null
5353

5454
popd > /dev/null
5555

56-
# Workaround. Remove when https://github.com/ros2/rosidl/pull/596 is merged
57-
touch firmware/mcu_ws/ros2/common_interfaces/actionlib_msgs/COLCON_IGNORE;
58-
touch firmware/mcu_ws/ros2/common_interfaces/std_srvs/COLCON_IGNORE;
59-
touch firmware/mcu_ws/ros2/example_interfaces/COLCON_IGNORE;
56+
cd firmware
57+
echo "" > /project/built_packages
58+
for f in $(find $(pwd) -name .git -type d); do pushd $f > /dev/null; echo $(git config --get remote.origin.url) $(git rev-parse HEAD) >> /project/built_packages; popd > /dev/null; done;
59+
60+
cd /project
61+
if [[ `git diff-index --name-only HEAD | grep built_packages` ]]; then
62+
echo "Changes detected"
63+
else
64+
echo "No changes detected"
65+
exit 0
66+
fi
67+
68+
cd /uros_ws
6069

6170
######## Clean and source ########
6271
find /project/src/ ! -name micro_ros_arduino.h ! -name *.c ! -name *.cpp ! -name *.c.in -delete

0 commit comments

Comments
 (0)