File tree Expand file tree Collapse file tree 2 files changed +14
-1
lines changed
Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -50,8 +50,18 @@ alias list-windows='DISPLAY=:0 wmctrl -lp'
5050
5151alias 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}' `
5463alias disable-wifi-powersave=" sudo iw dev ${_WIFI_INTERFACE} set power_save off"
64+ alias check-wifi-powersave=" check-interface-powersave ${_WIFI_INTERFACE} "
5565unset _WIFI_INTERFACE
5666
5767function 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
106117if [ " $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
Original file line number Diff line number Diff line change 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
55GREEN=' \033[0;32m'
66RED=' \033[0;31m'
You can’t perform that action at this time.
0 commit comments