- Install docker
- Install socat (see install.sh)
- Install XQuartz from https://www.xquartz.org
This file contains 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
locale # check for UTF-8 | |
sudo apt update && sudo apt install locales | |
sudo locale-gen en_US en_US.UTF-8 | |
sudo update-locale LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 | |
export LANG=en_US.UTF-8 | |
locale # verify settings | |
sudo apt install -y software-properties-common |
This file contains 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 sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list' | |
sudo apt install curl -y # if you haven't already installed curl | |
curl -s https://raw.githubusercontent.com/ros/rosdistro/master/ros.asc | sudo apt-key add - | |
sudo apt update | |
sudo apt upgrade | |
# Desktop-Full Install: (Recommended) : Everything in Desktop plus 2D/3D simulators and 2D/3D perception packages | |
# sudo apt install ros-noetic-desktop-full |
This file contains 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
[Processing: qt_gui_cpp] | |
[Processing: qt_gui_cpp] | |
[Processing: qt_gui_cpp] | |
[Processing: qt_gui_cpp] | |
--- output: qt_gui_cpp | |
-- Found ament_cmake: 1.3.2 (/Users/antonmatosov/opt/miniconda3/envs/ros_env/share/ament_cmake/cmake) | |
-- Found Python3: /Users/antonmatosov/opt/miniconda3/envs/ros_env/bin/python3.9 (found version "3.9.13") found components: Interpreter | |
-- Override CMake install command with custom implementation using symlinks instead of copying resources | |
-- Found pluginlib: 5.1.0 (/Users/antonmatosov/opt/miniconda3/envs/ros_env/share/pluginlib/cmake) |
This file contains 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
~/D/ros2_ws> ros2 launch rosbridge_server rosbridge_websocket_launch.xml (ros_env) | |
[INFO] [launch]: All log files can be found below /Users/antonmatosov/.ros/log/2022-07-09-14-02-37-528359-MacBook-Pro.attlocal.net-22418 | |
[INFO] [launch]: Default logging verbosity is set to INFO | |
[INFO] [rosbridge_websocket-1]: process started with pid [22420] | |
[INFO] [rosapi_node-2]: process started with pid [22421] | |
[rosbridge_websocket-1] [INFO] [1657400558.922724393] [rosbridge_websocket]: Rosbridge WebSocket server started on port 9090 | |
[rosbridge_websocket-1] [INFO] [1657400560.228789243] [rosbridge_websocket]: Client connected. 1 clients total. | |
[rosbridge_websocket-1] [ERROR] [1657400560.307346519] [rosbridge_websocket]: [Client 43df0659-04ef-4217-a40c-0fd4278fca0c] [id: subscribe:/rosout:5] subscribe: Unable to import msg class Log from package rosgraph_msgs. Caused by module 'rosgraph_msgs.msg' has no attribute 'Log' | |
[rosapi_node-2] Traceback (most recent call last): | |
[rosapi_node-2] File "/Users/antonmatosov/Dev |
This file contains 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
repositories: | |
ament/ament_cmake: | |
type: git | |
url: https://github.com/ament/ament_cmake.git | |
version: foxy | |
ament/ament_index: | |
type: git | |
url: https://github.com/ament/ament_index.git | |
version: foxy | |
ament/ament_lint: |
This file contains 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
name: ros2 | |
channels: | |
- conda-forge | |
dependencies: | |
- apr=1.6.5=h0b31af3_1 | |
- asio=1.14.0=h4a8c4bd_0 | |
- assimp=4.1.0=h69fbfa3_0 | |
- bash=5.0.011=h93121df_0 | |
- boost-cpp=1.70.0=h75728bb_2 | |
- bzip2=1.0.8=h0b31af3_2 |
This file contains 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
""" Trains an agent with (stochastic) Policy Gradients on Pong. Uses OpenAI Gym. """ | |
import numpy as np | |
import cPickle as pickle | |
import gym | |
# hyperparameters | |
H = 200 # number of hidden layer neurons | |
batch_size = 10 # every how many episodes to do a param update? | |
learning_rate = 1e-4 | |
gamma = 0.99 # discount factor for reward |
This file contains 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
I've tested it on Fedora 23 and Ubuntu 16.04. I'm using gcc-5.3.1, python-3.4, VS Code-1.14.0 | |
You can debug mixed Python/C++ in the same GUI. It also works for MPI applications. You can switch between the debuggers and corresponding call stacks. | |
1. Packages needed | |
1) Visual Studio Code | |
2) Extensions for VS Code: | |
"Python" from Don Jayamanne (I'm using 0.6.7) | |
This allows VS Code act as the front end to debug python. | |
This gives VS Code ability to attach to a python script that uses module "ptvsd". |
This file contains 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
$ pandoc -s -f markdown -t man README.md | man -l - | |
$ pandoc -s -f markdown -t html README.md |lynx -dump -stdin | less - |
NewerOlder