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
| # dependencies | |
| apk install gcc make build-base readline readline-dev zlib zlib-dev linux-headers | |
| # path | |
| mkdir /usr/local/src | |
| mkdir /usr/local/postgresql-13.5 | |
| # download | |
| cd /usr/local/src | |
| wget https://ftp.postgresql.org/pub/source/v13.5/postgresql-13.5.tar.gz |
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 getfem as gf | |
| import numpy as np | |
| #Moony-Rivlinの構成則 | |
| C10 = 1.195056693 #[MPa]=[N/mm2] | |
| C01 = 0.0 #[MPa]=[N/mm2] | |
| dim = 3 # 3次元要素 |
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
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Document</title> | |
| <link rel="stylesheet" href="./css/styles.css"> | |
| </head> | |
| <body> |
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 gym | |
| from rl.agents import DDPGAgent | |
| from rl.policy import EpsGreedyQPolicy, LinearAnnealedPolicy | |
| from rl.memory import SequentialMemory | |
| from rl.random import OrnsteinUhlenbeckProcess, GaussianWhiteNoiseProcess | |
| from keras.optimizers import Adam | |
| nb_steps = 1500000 | |
| memory = SequentialMemory(limit=200000, window_length=WINDOW_LENGTH) |
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 csv | |
| def write_rhino_points(points, path='./points.csv'): | |
| with open(path, mode='w') as f: | |
| writer = csv.writer(f, delimiter=',') | |
| for p in points: | |
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
| rosdep update | |
| apt-get -y update | |
| apt-get -y dist-upgrade | |
| apt-get install -y ros-kinetic-catkin python-catkin-tools | |
| apt install -y ros-kinetic-moveit | |
| mkdir -p ~/ws_moveit/src |
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
| nx, ny, nz = ax5, ay5, az5 | |
| n_length = math.sqrt(nx ** 2 + ny ** 2 + nz ** 2) | |
| distance = 50 | |
| nx, ny, nz = nx / n_length * distance, ny / n_length * distance, nz / n_length * distance | |
| ur.send_command_movel([x5 + nx, y5 + ny, z5 + nz, ax5, ay5, az5], v=speed_set, r=radius) |
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
| """Provides a scripting component. | |
| Inputs: | |
| x: The x script variable | |
| y: The y script variable | |
| Output: | |
| a: The a output variable""" | |
| __author__ = "ytakzk" | |
| __version__ = "2019.02.27" |
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
| apt update | |
| apt install g++ cmake libcgal-dev build-essential vim git | |
| g++ main.cpp -lCGAL -lgmp |
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 sys | |
| sys.path.append('./MAS-1819/T1') | |
| from grlib import graphics as gr | |
| import math | |
| import random | |
| window_length = 800 | |
| outline_width = 1 | |
| black_color = gr.color_rgb(11, 11, 11) | |
| min_length = 5 # 2, 5, 10 # should be positive over 1 |
NewerOlder