git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
Hi there! Since this post was originally written, nvm
has gained some new tools, and some people have suggested alternative (and potentially better) approaches for modern systems. Make sure to have a look at the comments to this article, before following this guide!
Trickier than it seems.
tl;dr I want to use Rust to program robots. Help me find the best core libraries to build on.
Robotic systems require high performance and reliability, but also have enormous complexity in terms of algorithms employed, number of subsystems, embedded hardware control, and other metrics. Development is mostly split between C++ for performance and safety critical components, and MatLab or Python for quick research or task iteration.
In production, it is recommended to minify any JavaScript code that is included with your application. Minification can help your website load several times faster, especially as the size of your JavaScript source code grows.
Here's one way to set it up:
npm init -y
in your project folder (don't skip this step!)npm install terser
Now, to minify a file called like_button.js
, run in the terminal:
const express = require('express'); | |
const app = express(); | |
// Application | |
app.get('/', function(req, res) { | |
if (process.env.NODE_ENV === 'development') { | |
for (var key in require.cache) { | |
delete require.cache[key]; | |
} | |
} |
<?xml version="1.0" ?> | |
<!-- =================================================================================== --> | |
<!-- | This document was autogenerated by xacro from /opt/ros/noetic/share/franka_description/robots/panda_arm.urdf.xacro | --> | |
<!-- | EDITING THIS FILE BY HAND IS NOT RECOMMENDED | --> | |
<!-- =================================================================================== --> | |
<robot name="panda"> | |
<link name="panda_link0"> | |
<visual> | |
<geometry> | |
<mesh filename="package://franka_description/meshes/visual/link0.dae"/> |
[wsl2] | |
kernel=<path> # An absolute Windows path to a custom Linux kernel. | |
memory=<size> # How much memory to assign to the WSL2 VM. | |
processors=<number> # How many processors to assign to the WSL2 VM. | |
swap=<size> # How much swap space to add to the WSL2 VM. 0 for no swap file. | |
swapFile=<path> # An absolute Windows path to the swap vhd. | |
localhostForwarding=<bool> # Boolean specifying if ports bound to wildcard or localhost in the WSL2 VM should be connectable from the host via localhost:port (default true). | |
# <path> entries must be absolute Windows paths with escaped backslashes, for example C:\\Users\\Ben\\kernel | |
# <size> entries must be size followed by unit, for example 8GB or 512MB |
#!/usr/bin/env python3 | |
# | |
# model-training.py | |
# Use HyperOpt and Gazebo to train parameters of your robot. Perfoms a number | |
# of episodic simulations and optimizing the inputs to a xacro-enabled urdf file. | |
# | |
# Copyright 2020 FlyingEinstein.com | |
# Author: Colin F. MacKenzie | |
# | |
# Features: |
""" This script implements a class for calculating the Earth terminator. | |
Additional functionality for calculating the boundary of the various | |
twilight types and plotting these areas on a 2D map are also provided. | |
-------------------------------------------------------------------------- | |
Copyright (C) 2023 Jonathan Maes | |
This program is free software: you can redistribute it and/or modify | |
it under the terms of the GNU Lesser General Public License as published | |
by the Free Software Foundation, either version 3 of the License, or | |
(at your option) any later version. |