forked from ros-drivers/joystick_drivers
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
93 additions
and
3 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
### Command-Line Options ### | ||
In an attempt to run either ps3joy.py or ps3joy_node.py, paramaters can be added to enable features. | ||
|
||
``` | ||
rosrun ps3joy ps3joy.py --help | ||
usage: ps3joy.py [--inactivity-timeout=<n>] [--no-disable-bluetoothd] [--redirect-output] [--continuous-output]=<f> | ||
<n>: inactivity timeout in seconds (saves battery life). | ||
<f>: file name to redirect output to. | ||
``` | ||
|
||
`--inactivity-timeout` | ||
This may be useful for saving battery life and reducing contention on the 2.4 GHz network.Your PS3 controller | ||
will shutdown after a given amount of time of inactivity. | ||
|
||
`--no-disable-bluetoothd` | ||
ps3joy.py will not take down bluetoothd. Bluetoothd must be configured to not handle input device, otherwise | ||
you will receive an error saying "Error binding to socket". | ||
|
||
`--redirect-output` | ||
This can be helpful when ps3joy.py is running in the backgound. This will allow the standard output | ||
and error messages to redirected into a file. | ||
|
||
`--continuous-output` | ||
This will output continuous motion streams and as a result this will no longer leave extended periods of | ||
no messages on the /joy topic. ( This only works for ps3joy.py. Entering this parameter in ps3joy_node.py will | ||
result in the parameter being ignored.) | ||
|
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
## Troubleshooting ## | ||
------------------------- | ||
#### Issues pairing the PS3 joystick #### | ||
When pairing your joystick via bluetooth, you may recieve the following message on | ||
your terminal: | ||
``` | ||
Current Bluetooth master: 00:15:83:ed:3f:21 | ||
Unable to retrieve local bd_addr from `hcitool dev`. | ||
Please enable Bluetooth or specify an address manually. | ||
``` | ||
This would indicate that your bluetooth is disabled. To enable your bluetooth, try the | ||
following: | ||
|
||
1. Check the status of your bluetooth by entering the following: | ||
``` | ||
sudo systemctl status bluetooth | ||
``` | ||
You may see something like this: | ||
|
||
``` | ||
● bluetooth.service - Bluetooth service | ||
Loaded: loaded (/lib/systemd/system/bluetooth.service; disabled; vendor preset: enabled) | ||
Active: inactive (dead) | ||
Docs: man:bluetoothd(8) | ||
``` | ||
|
||
If you do, that means your bluetooth service is disabled. Turn enable it enter | ||
``` | ||
sudo systemctl start bluetooth | ||
sudo systemctl status bluetooth | ||
``` | ||
After running these commands your bluetooth service should be up and running: | ||
|
||
``` | ||
● bluetooth.service - Bluetooth service | ||
Loaded: loaded (/lib/systemd/system/bluetooth.service; disabled; vendor preset: enabled) | ||
Active: active (running) since Thu 2017-06-29 16:21:43 EDT; 16s ago | ||
Docs: man:bluetoothd(8) | ||
Main PID: 27362 (bluetoothd) | ||
Status: "Running" | ||
CGroup: /system.slice/bluetooth.service | ||
└─27362 /usr/local/libexec/bluetooth/bluetoothd | ||
``` | ||
Retry the commands that were mentioned in step 2 for pairing the PS3 joystick. | ||
|
||
2. Run the following command: | ||
``` | ||
hciconfig hci0 reset | ||
``` | ||
followed by: | ||
``` | ||
sudo bash | ||
rosrun ps3joy sixpair | ||
``` |