Install i2c tools to check for PCA9685 board.
sudo apt-get install i2c-tools
sudo i2cdetect -y 1
Install vim and git.
| { | |
| "Resources": { | |
| "MyVpcF9F0CA6F": { | |
| "Type": "AWS::EC2::VPC", | |
| "Properties": { | |
| "CidrBlock": "10.0.0.0/16", | |
| "EnableDnsHostnames": true, | |
| "EnableDnsSupport": true, | |
| "InstanceTenancy": "default", | |
| "Tags": [ |
| #!/bin/bash | |
| set -e | |
| # provide a folder like ~/temp to build the opencv sources | |
| if [ "$#" -ne 1 ]; then | |
| echo "Usage: $0 <Build Folder>" | |
| exit | |
| fi | |
| folder="$1" |
Install i2c tools to check for PCA9685 board.
sudo apt-get install i2c-tools
sudo i2cdetect -y 1
Install vim and git.
Load up the ROS environment.
source /opt/aws/deepracer/setup.bash
Listing nodes.
$ rosnode list
| AWSTemplateFormatVersion: 2010-09-09 | |
| Description: 'authentication: Resources for hosting authentication using AWS Cognito, a @wolfeidau template' | |
| Parameters: | |
| AppName: | |
| Description: Name of application, used in signup emails and naming of aws resources. | |
| Type: String | |
| AllowedPattern: '^[a-zA-Z0-9]*$' |
| package main | |
| import ( | |
| "github.com/apex/gateway" | |
| "github.com/aws/aws-lambda-go/lambda" | |
| log "github.com/sirupsen/logrus" | |
| "github.com/wolfeidau/lambda-raven-service/pkg/api" | |
| "github.com/wolfeidau/lambda-raven-service/pkg/config" | |
| "github.com/wolfeidau/lambda-raven-service/pkg/handlers" | |
| _ "github.com/wolfeidau/lambda-raven-service/pkg/logging" |
| FROM ros:melodic-robot | |
| RUN apt-get update && apt-get install vim curl -y | |
| RUN mkdir -p /src/ydlidar/src | |
| WORKDIR /src/ydlidar | |
| RUN /bin/bash -c "source /opt/ros/melodic/setup.bash && catkin_make" | |
| WORKDIR /src/ydlidar/src | |
| RUN git clone https://github.com/EAIBOT/ydlidar.git | |
| WORKDIR /src/ydlidar | |
| RUN /bin/bash -c "source /opt/ros/melodic/setup.bash && catkin_make install && rospack profile" |
| server { | |
| listen 80; | |
| server_name localhost; | |
| root /usr/share/nginx/html; | |
| index index.html index.htm; | |
| # rely on X-Forwarded-Proto to redirect to HTTPS | |
| if ($http_x_forwarded_proto = "http") { | |
| return 301 https://$server_name$request_uri; | |
| } |
apt install git cmake g++ gcc
git clone https://github.com/EAIBOT/ydlidar
cd ydlidar/sdk
cmake .
make -j4
samples/ydlidar_test /dev/ttyUSB0 128000 0
| default: runserver runscan | |
| .PHONY: default | |
| runserver: | |
| docker-compose up -d | |
| .PHONY: runserver | |
| runscan: | |
| docker run -ti -v $(shell pwd):/root/src --network docker-dev-environment_sonarnet newtmitch/sonar-scanner sonar-scanner -Dsonar.host.url=http://sonarqube:9000 | |
| .PHONY: runscan |