roslaunch rasberry_bringup robot_bringup.launch robot_model:=$(rospack find rasberry_bringup)/config/tall_robot_example.yaml model_extras:=$(rospack find graspberry_description)/scara_arm/urdf/Harvesting_extras.xacro ekf_publish_tf:="$EKF_PUBLISH_TF" simple_sim:=$USE_SIM with_teleoperation:=true world_name:=$GAZEBO_WORLD use_gui:=$USE_GUI
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # https://superuser.com/questions/1330959/what-is-the-right-ffmpeg-output-format-for-a-v4l2-loopback-device | |
| # https://github.com/lucasw/image_to_v4l2loopback | |
| # install and load video loopback | |
| sudo apt-get install v4l2loopback-utils v4l2loopback-dkms | |
| sudo modprobe v4l2loopback | |
| # stream the desktop | |
| ffmpeg -f x11grab -r 15 -s 640x480 -i :0.0+0,0 -vcodec rawvideo -pix_fmt yuyv422 -threads 0 -f v4l2 /dev/video0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # dangerous: removes all containers: | |
| docker ps -aq --no-trunc | xargs docker rm | |
| docker rmi $(docker images --filter "dangling=true" -q --no-trunc) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # source this to set the dbus env in a gnome session | |
| export DISPLAY=:0 | |
| PID=$(pgrep gnome-session) | |
| export DBUS_SESSION_BUS_ADDRESS=$(grep -z DBUS_SESSION_BUS_ADDRESS /proc/$PID/environ|cut -d= -f2-) | |
| # You may now configure things in gsettings, e.g. run vino: | |
| gsettings reset org.gnome.Vino network-interface | |
| gsettings set org.gnome.Vino enabled true | |
| gsettings set org.gnome.Vino prompt-enabled false |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| $mt_name_old = "TDNAI (With Confirmation of Studies)" | |
| $mt_name_new = "RDNAI (With Confirmation of Studies)" | |
| // Get Old and New MilstoneType IDs | |
| $mt_old = App\Models\MilestoneType::where('name', $mt_name_old )->withTrashed()->first(); | |
| $mt_new = App\Models\MilestoneType::where('name', $mt_name_new )->first(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sudo apt-get install python3-ros-buildfarm | |
| mkdir -p /tmp/prerelease_job | |
| cd /tmp/prerelease_job | |
| generate_prerelease_script.py \ | |
| https://raw.githubusercontent.com/LCAS/ros_buildfarm_config/master/index.yaml \ | |
| kinetic default ubuntu xenial amd64 \ | |
| --custom-repo pcl_catkin_test__custom-2:git:https://github.com/LCAS/pcl_catkin.git:lcas_c11 \ | |
| --level 1 --output-dir ./ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| curl -L https://github.com/shiftkey/desktop/releases/download/release-1.4.2-linux1/GitHubDesktop-linux-amd64-1.4.2-linux1.snap > /tmp/GitHubDesktop-linux-amd64-1.4.2-linux1.snap && \ | |
| snap install --dangerous --classic /tmp/GitHubDesktop-linux-amd64-1.4.2-linux1.snap |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # source or copy this to gain access to a running dbus session in your ssh session | |
| GNOME_SESSION_PID=$(pgrep gnome-session) | |
| export DBUS_SESSION_BUS_ADDRESS=$(grep -z DBUS_SESSION_BUS_ADDRESS /proc/$GNOME_SESSION_PID/environ|cut -d= -f2-) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import coloredlogs | |
| import logging | |
| logging.debug("debug") | |
| logging.info("info") | |
| logging.warning("warning") | |
| logging.error("error") | |
| logging.fatal("fatal") | |
| logger = logging.Logger(__file__) | |
| coloredlogs.install(level='DEBUG', logger=logger) |