Dockerコンテナからホストにアクセスするときのホスト名 host.docker.internal
-
WSLの場合 Genesis-Embodied-AI/Genesis#246 (comment)
import os os.environ['PYOPENGL_PLATFORM'] = 'glx'
-
CUDA Error CUDA_ERROR_NO_DEVICE: no CUDA-capable device is detected while calling init (cuInit)
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
// g++ scantest.cpp -lbluetooth | |
#include <stdlib.h> | |
#include <errno.h> | |
#include <unistd.h> | |
#include <sys/ioctl.h> | |
#include <iostream> | |
#include <signal.h> | |
#include <bluetooth/bluetooth.h> |
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
using UnityEngine; | |
public class AckermannSteering : MonoBehaviour | |
{ | |
[SerializeField] private float steeringAngle; // ステアリングの切れ角 | |
[SerializeField] private float tread; // 左右の車輪間の距離 (トレッド) | |
[SerializeField] private float wheelBase; // 前後の車輪間の距離 (ホイールベース) | |
public float leftWheelAngle { get; private set; } // 左車輪の角度 | |
public float rightWheelAngle { get; private set; } // 右車輪の角度 |
@chikuta さんのpremaidai_descriptionのURDFを ROS(Kinetic等)とROS#を使ってUnity上に召喚する方法
URDFをrosbridge websocketで送出するための作業
- https://github.com/siemens/ros-sharp/tree/master/ROS の file_server フォルダ以下を丸ごと catkin_ws/src 以下に置く
cd catkin_ws/src
そしてgit clone https://github.com/chikuta/premaidai_description.git
premaidai_description/launch
内に以下の内容を記述したfileserver.launch
という名前のファイルを作る
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
#include <windows.h> | |
#include <stdio.h> | |
__declspec(dllexport) void __cdecl Function1(void) { | |
printf_s("%s\n", __func__); /* 標準出力 */ | |
/* または */ | |
fprintf_s(stdout, "%s\n", __func__); /* 標準出力 */ | |
} | |
__declspec(dllexport) void __cdecl Function2(void) { |
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
// Please locate this file as Assets/Editor/GitignoreGenerator.cs | |
// Then select "Custom" > "Add .gitignore to project root from menu". | |
using UnityEngine; | |
using UnityEngine.Networking; | |
using UnityEditor; | |
using System.IO; | |
using System; | |
public class GitignoreGenerator : EditorWindow { |
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
from pythonosc import osc_message_builder | |
from pythonosc import udp_client | |
if __name__ == "__main__": | |
client = udp_client.UDPClient("127.0.0.1", 5005) | |
msg = osc_message_builder.OscMessageBuilder(address="/my_address") | |
msg.add_arg(0) | |
msg = msg.build() |
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
#include <stdio.h> | |
int main(void) | |
{ | |
printf("%x\n", '\n'); | |
return 0; | |
} |
NewerOlder