-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Controlling the hand motors #7
Comments
Hi, You did the correct installing from sources. The configuration for the rosdistro installation is not working... Regarding your question about controlling the hand, you can try the following:
rosservice call /bhand_node/actions "action: 2" (CLOSE)
$ rosservice call /bhand_node/set_control_mode "mode: 'POSITION'"
Best regards, Román |
Hello, [INFO] [WallTime: 1492607366.954304] bhand_node: starting The problem is that the hand responds only to the service call with ("Action: 1"), but at the same time it returns False, and this error appears in the terminal windows in which I launched the bhand_controller.launch file: As you see the pcan connection is restarted. When I call the service with "Action: 2", or "Action: 3", it returns False, and this error appears in the terminal windows in which I launched the bhand_controller.launch file: Please, let me know what may be the reason of these errors. May it be the package it self? |
Hi, It could be a problem with the CAN driver compilation, as it was reported on the following issue: In that case, the problem was in a flag set in the compilation of the peak-can driver:
Which version are you using? Regards |
Thank you for your reply I am using peak-Linux-driver 8.3.1 with Linux 14.04 64-bit and ROS indigo. I tried also version 7.15 and the hand doesn't move. I followed issue 1 and commented the mentioned lines and there is some progress. The hand now responds to the predefined actions like close and open. The major problem is that the hand doesn't respond to publishing on the /bhand_node/command. Sometimes whn I roslaunch the file: roslaunch bhand_controller bhand_controller.launch, I get this error: but this error disappears when I run this command: I would like to know your recommendation to fix the current problem. |
Hi, Commenting the lines referred in issue 1 is just to try, but it should work without it. You should add export PYTHONPATH=/usr/lib:$PYTHONPATH in your .bashrc file in order to avoid that problem importing the library. Regarding the version of the library, I've never tried with the new version 8.x.x, just with the 7.XX. Once installed you should check that the NO_NET_DEV support is correctly set: $> cat /proc/pcan You should see: -NA- under ndev *------------- PEAK-System CAN interfaces (www.peak-system.com) ------------- |
@RomanRobotnik Hi, I almost encounter the same problems. When I am calling the action service, errors showing:
I commented the code suggested in issue 1:
in the init_hand method. It works, but I want to know is it correct to do like this? |
Hello,
I am working with BarrettHand BH8-282 model.
Firstly, I tried installing the barrett_hand package with apt-get install ros-indigo-barrett-hand, but when I tried to launch the bhand_controller.launch an error saying that the file doesn't exist appeared. I found that the installed package actually doesn't have a launch directory, so I turned to clone it from git into my ROS workspace.
Until now, I managed to install the ROS, the peak driver, the package, and I can launch the bhand_controller.launch, and I can initialize the hand by calling the service which takes "action 1", and I can see the hand being initialized. I want to control the hand motors now. What I understand is that controlling the motors is done by publishing to some of the available topics, and there is an examples directory that publishes to the bhand_node/command topic. I tried publishing to this topic but the hand is not responding. Please, let me know the way I can control the hand motors.
Thank you
The text was updated successfully, but these errors were encountered: