- 1 Runtime config enables Cuda
- 2 -H parameter enables docker server at port 2376 for jenkins builds
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 | |
| cd /tmp \ | |
| && curl -OL https://github.com/mongodb/mongo-c-driver/releases/download/1.17.2/mongo-c-driver-1.17.2.tar.gz \ | |
| && tar xzf mongo-c-driver-1.17.2.tar.gz \ | |
| && cd mongo-c-driver-1.17.2 \ | |
| && mkdir cmake-build \ | |
| && cd cmake-build \ | |
| && cmake -DENABLE_AUTOMATIC_INIT_AND_CLEANUP=OFF .. \ | |
| && make \ | |
| && make install \ |
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
| # | |
| # Copyright (C) 2018 by George Cave - gcave@stablecoder.ca | |
| # | |
| # Licensed under the Apache License, Version 2.0 (the "License"); you may not | |
| # use this file except in compliance with the License. You may obtain a copy of | |
| # the License at | |
| # | |
| # http://www.apache.org/licenses/LICENSE-2.0 | |
| # | |
| # Unless required by applicable law or agreed to in writing, software |
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 | |
| rosbag record -a -O data.bag -x "/(.*)packets|/(.*)points|/laser_cloud(.*)|/velodyne(.*)|/scan_sim" |
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
| #include <termios.h> | |
| int main(){ | |
| char *portname = "/dev/ttyUSB1" | |
| // termios options here | |
| int fd = open (portname, O_RDWR | O_NOCTTY | O_SYNC); | |
| ioctl(fd, TCFLSH, 0); // flush receive | |
| ioctl(fd, TCFLSH, 1); // flush transmit | |
| ioctl(fd, TCFLSH, 2); // flush both |
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
| #include <signal.h> | |
| volatile sig_atomic_t stop; | |
| void inthand(int signum) | |
| { | |
| stop = 1; | |
| } | |
| int main(){ |