RobotnikAutomation / barrett_hand

ROS package to control the Barrett Hand
13 stars 24 forks source link

Error Openinig Port /dev/pcanusb32 #16

Open MohamadHalwani opened 3 years ago

MohamadHalwani commented 3 years ago

I'm having hard time connecting the bhand. The WEIRD thing is that yesterday it worked with no issues and I had a good time examining the controller. but today I'm having these issues

.. logging to /home/ubuntu/.ros/log/e21b736a-1d9c-11eb-b973-e82a44f3998b/roslaunch-ubuntu-Lenovo-ideapad-320-15IKB-15270.log
Checking log directory for disk usage. This may take awhile.
Press Ctrl-C to interrupt
WARNING: disk usage in log directory [/home/ubuntu/.ros/log] is over 1GB.
It's recommended that you use the 'rosclean' command.

started roslaunch server http://ubuntu-Lenovo-ideapad-320-15IKB:36085/
SUMMARY
========

PARAMETERS
 * /bhand_node/control_mode: POSITION
 * /bhand_node/desired_freq: 250.0
 * /bhand_node/ft_sensor: False
 * /bhand_node/joint_ids: ['F1', 'F1_TIP', ...
 * /bhand_node/joint_names: ['bh_j12_joint', ...
 * /bhand_node/port: /dev/pcanusb32
 * /bhand_node/tactile_sensors: True
 * /rosdistro: **kinetic**
 * /rosversion: 1.12.16

NODES
  /
    bhand_node (bhand_controller/bhand_node.py)

ROS_MASTER_URI=http://localhost:11311

process[bhand_node-1]: started with pid [15287]
[INFO] [1604385233.549408]: /bhand_node: init: setting control mode by default to PID
{'F2_TIP': ['bh_j23_joint', 3], 'F1': ['bh_j12_joint', 0], 'F2': ['bh_j22_joint', 2], 'F3': ['bh_j32_joint', 4], 'F3_TIP': ['bh_j33_joint', 5], 'F1_TIP': ['bh_j13_joint', 1], 'SPREAD_1': ['bh_j11_joint', 6], 'SPREAD_2': ['bh_j21_joint', 7]}
[INFO] [1604385233.551186]: /bhand_node: port /dev/pcanusb32, freq = 250, topic = state, tactile_sensors = True
[INFO] [1604385233.551872]: bhand_node: starting
PCANBasic::Initialize: Error openning port /dev/pcanusb32
[ERROR] [1604385233.578192]: pyHand: Initialize: Error: Error Number: 0x10000 while attempting to initialize

[ERROR] [1604385233.578635]: /bhand_node:setup: Error initializing the hand
PCANBasic::Initialize: Error openning port /dev/pcanusb32
[ERROR] [1604385234.579611]: pyHand: Initialize: Error: Error Number: 0x10000 while attempting to initialize

[ERROR] [1604385234.581824]: /bhand_node:setup: Error initializing the hand
PCANBasic::Initialize: Error openning port /dev/pcanusb32
[ERROR] [1604385235.580416]: pyHand: Initialize: Error: Error Number: 0x10000 while attempting to initialize

[ERROR] [1604385235.581568]: /bhand_node:setup: Error initializing the hand
PCANBasic::Initialize: Error openning port /dev/pcanusb32
[ERROR] [1604385236.581505]: pyHand: Initialize: Error: Error Number: 0x10000 while attempting to initialize

[ERROR] [1604385236.582134]: /bhand_node:setup: Error initializing the hand
PCANBasic::Initialize: Error openning port /dev/pcanusb32
[ERROR] [1604385237.582646]: pyHand: Initialize: Error: Error Number: 0x10000 while attempting to initialize

[ERROR] [1604385237.583293]: /bhand_node:setup: Error initializing the hand
PCANBasic::Initialize: Error openning port /dev/pcanusb32
[ERROR] [1604385238.583744]: pyHand: Initialize: Error: Error Number: 0x10000 while attempting to initialize

[ERROR] [1604385238.584622]: /bhand_node:setup: Error initializing the hand
[ERROR] [1604385238.586241]: /bhand_node::canError: Errors on CAN bus
[INFO] [1604385238.587193]: BHand::switchToState: FAILURE_STATE
[INFO] [1604385243.589295]: BHand::switchToState: INIT_STATE
PCANBasic::Initialize: Error openning port /dev/pcanusb32

any ideas ?

MohamadHalwani commented 3 years ago

It seems that the issue has to do with UEFI (BIOS) settings, I really do not know what is that but the solution in here do the job but it seems that u have to do it each time you shut down your laptop Any other solution is appreciated

MohamadHalwani commented 3 years ago

Again its not working any ideas anyone ??

RomanRobotnik commented 3 years ago

Is it the port /dev/pcanusb32 available? Sometimes, when the system (kernel) is upgraded, you need to re-install the library again.

MohamadHalwani commented 3 years ago

You mean the pcan python ( https://github.com/RobotnikAutomation/pcan_python.git) ? I already did all the steps, how can I check ?

Thanks for your reply

RomanRobotnik commented 3 years ago

ls /dev/pcan*

It will show you the available devices.

On Thu, 18 Feb 2021 at 09:57, MohamadHalwani notifications@github.com wrote:

You mean the pcan python ( https://github.com/RobotnikAutomation/pcan_python.git) ? I already did all the steps, how can I check ?

Thanks for your reply

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/RobotnikAutomation/barrett_hand/issues/16#issuecomment-781189413, or unsubscribe https://github.com/notifications/unsubscribe-auth/AALQCJJLB4DCZJSH4CJL4ITS7TI6JANCNFSM4TILIOFA .

MohamadHalwani commented 3 years ago

Its giving no such file or directory ! Is it the peak driver missing ? because I already downloaded this from their website (version 8.8.0) and ran "make NET=NO_NETDEV_SUPPORT

MohamadHalwani commented 3 years ago

using the following command solved the issue make PCC=NO PCI=NO DNG=NO ISA=NO PAR=NO