VisualStudio2019
プロジェクト作成設定
MFCアプリ
ダイアログベース
共有DLLでMFCを使用する
スタティックライブラリ使用だと「hdu.lib(hduError.obj) : error LNK2038: 'RuntimeLibrary' の不一致が検出されました。」のエラーになる
サイズ変更=OFF
最小化ボックス
Windowsソケット
プロジェクト環境設定
構成プロパティ
詳細
文字セット
マルチバイト文字セットを使用する
C/C++
全般
追加のインクルードディレクトリ
$(OH_SDK_BASE)\include;$(OH_SDK_BASE)\utilities\include;
C/C++
コマンドライン
追加のオプション
/source-charset:utf-8 /execution-charset:utf-8
リンカー
全般
追加のライブラリディレクトリ
$(OH_SDK_BASE)\lib\$(Platform)\$(Configuration);$(OH_SDK_BASE)\utilities\lib\$(Platform)\$(Configuration);$(OH_SDK_BASE)\lib\$(Platform);
入力
追加の依存ファイル
hd.lib;hdu.lib;Winmm.lib;version.lib;
Releaseビルド
下記のHaptic Device DriversとOpenHaptics for Windows Developer Edition v3.5をインストールしたPCなら、ReleaseBuildしたアプリを実行可能
HDAPIConsoleExamples
AnchoredSpringForce
指定位置から離れるに従い反力が増える
Calibration
わからん
CommandJointTorque
指定位置から離れるに従い反力が増え、その時の押力を取得する
CommandMotorDAC
3軸モータ用DACに直接指示する、6軸のエンコーダ値・XYZ位置を取得する
ErrorHandling
エラーで振動を起こすのだが、わからん
FrictionlessPlane
水平面を上下方向から探る
FrictionlessSphere
球体表面を探る
HelloHapticDevice
領域内では指定位置から離れるに従い反力が増える
PreventWarmMotors
モーター温度を取得する
QueryDevice
XYZ位置を取得する
ServoLoopDutyCycle
サーボ周期を取得する
ServoLoopRate
サーボ周期を取得する
Vibration
ペンに振動を起こす
Haptic Device
Touch
https://ja.3dsystems.com/haptics-devices/touch
Document
https://ja.3dsystems.com/haptics-devices/touch/documents
3D Systems Touch User Guide(PDF)
Haptic Device Brochure (English)(PDF)
Haptic Device Drivers
3DSYSTEMS Geomagic Sculpt
Touch Device Driver v2021.9.21:
for Ethernet Touch or Touch X, and USB Touch or Touch X devices
紹介ページ
https://support.3dsystems.com/s/article/Haptic-Device-Drivers?language=ja
ドライバ自体
https://s3.amazonaws.com/dl.3dsystems.com/binaries/Sensable/driver/Touch_Device_Driver_2021.9.21.exe
How do I download and get Developer Support for OpenHaptics
OpenHaptics for Windows Developer Edition v3.5
紹介ページ
https://support.3dsystems.com/s/article/OpenHaptics-for-Windows-Developer-Edition-v35?language=ja
ファイル自体
https://s3.amazonaws.com/dl.3dsystems.com/binaries/Sensable/OH/3.5/OpenHaptics_Developer_Edition_v3.5.0.zip
Pairing
Touch Smart Setup を起動
後ろ側にあるボタンを押す
「Save Configuration」ボタンをクリックする、アプリが自動で終了する