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
| /* | |
| HGMC ROS COMM MODULE | |
| Description : Communication Module for ROBOT via SOCKET.IO | |
| Provide ROS Interface though rosnodejs of reThinkRobotics | |
| Expectation : QT can do this function as well | |
| Author : Theppasith Nisitsukcharoen | |
| */ | |
| import io from 'socket.io-client' | |
| import mavlink from 'mavlink' | |
| import mavlinkMessage from 'mavlink' |
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
| #!/bin/sh | |
| declare -i ID | |
| ID=` xinput list | grep -Eo 'Touchpad \s*id=[0-9]{1,2}'| grep -Eo '[0-9]{1,2}' ` | |
| declare -i STATE | |
| STATE=`xinput list-props $ID|grep 'Device Enabled'|awk '{print $4}'` | |
| if [ $STATE -eq 1 ] | |
| then | |
| xinput set-prop $ID "Device Enabled" 0 |
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 <iostream> | |
| char user_input; | |
| char state; | |
| void getInput(){ | |
| std::cout << "please insert input : "; | |
| std::cin >> user_input; | |
| // Interpret Input as an states | |
| state = user_input; |
NewerOlder