- Install docker
- Install socat (see install.sh)
- Install XQuartz from https://www.xquartz.org
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
| ~/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 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
| 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 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
| 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 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
| """ 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 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
| 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 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
| $ pandoc -s -f markdown -t man README.md | man -l - | |
| $ pandoc -s -f markdown -t html README.md |lynx -dump -stdin | less - |
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
| stackargs=$@ | |
| shbin="$(which sh)" | |
| if [ -z "$shbin" ] || [[ "$shbin" =~ "not found" ]]; then | |
| echo "Couldn't find sh, exiting." | |
| exit 1 | |
| else | |
| echo "Found sh: $shbin" | |
| fi |
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 numpy as np | |
| # import matplotlib | |
| # matplotlib.use('Agg') | |
| import matplotlib.pyplot as plt | |
| from matplotlib import animation, rc | |
| from IPython.display import HTML, Image | |
| import seaborn # for background grid | |
| seaborn.set() |
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
| // https://snack.expo.io/HynFGjcyf | |
| import React, { Component } from 'react'; | |
| import { | |
| StyleSheet, | |
| Text, | |
| View, | |
| Easing, | |
| Animated, | |
| // Button, |