Skip to content

Commit 6677702

Browse files
S-Dafarraicub-tech-iit-bot
authored andcommitted
[ergoCubSN000] Added scripts to check wifi powersave and ignoring onnx files when checking source/install diff
1 parent 6d279a5 commit 6677702

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

ergoCubSN000/extra/scripts/additionalCommands.sh

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,18 @@ alias list-windows='DISPLAY=:0 wmctrl -lp'
5050

5151
alias close-window='DISPLAY=:0 wmctrl -c'
5252

53+
check-interface-powersave() {
54+
if [ "$#" -ne 1 ]; then
55+
echo "Usage: check-interface-powersave <interface_name>"
56+
return 1
57+
fi
58+
59+
echo "$1: $(iw $1 get power_save)"
60+
}
61+
5362
_WIFI_INTERFACE=`iw dev | awk '$1=="Interface"{print $2}'`
5463
alias disable-wifi-powersave="sudo iw dev ${_WIFI_INTERFACE} set power_save off"
64+
alias check-wifi-powersave="check-interface-powersave ${_WIFI_INTERFACE}"
5565
unset _WIFI_INTERFACE
5666

5767
function set-blf-webcam() {
@@ -100,10 +110,13 @@ ${GREEN}trigger-click${NC} Emulates a mouse click to make banners disappear on t
100110
${GREEN}list-windows${NC} List the open windows. The first output is the window ID. The third value is the ID of the process owning the window.
101111
${GREEN}close-window${NC} Close a window given the Window ID.
102112
${GREEN}disable-wifi-powersave${NC} Disable the WiFi powersave.
113+
${GREEN}check-wifi-powersave${NC} Checks the WiFi powersave.
103114
${GREEN}set-blf-webcam${NC} Bash script that can be used to set the number of the blf webcam in the logger. IT WILL RECOMPILE AND INSTALL BLF.
104115
${GREEN}runYarpRobotInterface${NC} Run yarprobotinterface with whole-body-dynamics."'
105116

106117
if [ "$PS1" ]; then
118+
check-wifi-powersave
119+
107120
echo -e "Type ${GREEN}helpRobot${NC} for a list of useful commands."
108121

109122
# automatic terminator title

ergoCubSN000/extra/scripts/checkConfigurationFiles.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22

3-
diff -r --exclude="CMakeLists.txt" $ROBOTOLOGY_SUPERBUILD_SOURCE_DIR/src/robots-configuration/$YARP_ROBOT_NAME $ROBOTOLOGY_SUPERBUILD_SOURCE_DIR/build/install/share/ICUBcontrib/robots/$YARP_ROBOT_NAME | grep -ve dcm_walking -ve extra > /tmp/diff_out 2>&1
3+
diff -r --exclude="CMakeLists.txt" --exclude="*.onnx" $ROBOTOLOGY_SUPERBUILD_SOURCE_DIR/src/robots-configuration/$YARP_ROBOT_NAME $ROBOTOLOGY_SUPERBUILD_SOURCE_DIR/build/install/share/ICUBcontrib/robots/$YARP_ROBOT_NAME | grep -ve dcm_walking -ve extra > /tmp/diff_out 2>&1
44

55
GREEN='\033[0;32m'
66
RED='\033[0;31m'

0 commit comments

Comments
 (0)