ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

tufail's profile - activity

2023-03-17 11:06:05 -0500 answered a question How to use python2 and python3 at the same time on ROS melodic

Hi, I think this question has been answered here. As you can see, there are a few workarounds necessary to enable Python

2019-01-17 08:32:26 -0500 received badge  Favorite Question (source)
2015-08-19 08:18:43 -0500 received badge  Famous Question (source)
2015-08-19 08:18:22 -0500 received badge  Famous Question (source)
2015-08-19 08:18:22 -0500 received badge  Notable Question (source)
2015-02-19 14:11:35 -0500 received badge  Popular Question (source)
2014-12-17 15:31:06 -0500 asked a question Neuronics Katana Arm: FirmwareException: 'CRC does not match'

Hi,

I have a Neuronics Katana Arm (400, 6M180) and I am using the ROS package uos-ros-pkg for application development. I have noticed when I try to send the target pose (position + orientation) to the arm from MATLAB (via KNI_wrapper), the arm doesn't move and I get the error that says "FirmwareException: CRC does not match". Sending the target encoders values to the arm execute fine and without any error.

Today I tried on it the "follow_joint_trajectory" tutorial (katana_tutorials in uos-ros-pkg), I get the same error which means the problem is with the hardware not the software.

My question is that has anyone encountered a similar problem? Have you tried to update the firmware? Where can I get the updated firmware files from as the company's website is up no more. Will it solve the problem? If it won't, can I recover the original firmware back?

Complete description of the error is as follows:

ial@ial-SONY:~$ roslaunch katana katana.launch

logging to /home/ial/.ros/log/08aa7634-8631-11e4-94d4-f0bf971cd83f/roslaunch-ial-SONY-17613.log
Checking log directory for disk usage. This may take awhile.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.

started roslaunch server http://ial-SONY:51284/

SUMMARY
========

PARAMETERS
 * /katana/config_file_path
 * /katana_gripper_joints
 * /katana_joints
 * /katana_type
 * /robot_description
 * /rosdistro
 * /rosversion

NODES
  /
    katana (katana/katana)
    robot_state_publisher (robot_state_publisher/state_publisher)

auto-starting new master
process[master]: started with pid [17632]
ROS_MASTER_URI=http://localhost:11311

setting /run_id to 08aa7634-8631-11e4-94d4-f0bf971cd83f
process[rosout-1]: started with pid [17645]
started core service [/rosout]
process[robot_state_publisher-2]: started with pid [17657]
process[katana-3]: started with pid [17674]
[ INFO] [1418850589.843614312]: trying to connect to katana (TCP/IP) on 192.168.168.232:5566...
[ INFO] [1418850589.845436881]: success: TCP/IP connection to Katana opened
[ INFO] [1418850589.845519648]: success: protocol class instantiated
[ INFO] [1418850589.845583525]: success: communication with Katana initialized
[ INFO] [1418850589.980629183]: success: katana initialized
[ INFO] [1418850590.540611503]: no calibration required
[ INFO] [1418850590.540711165]: success: katana calibrated
[ INFO] [1418850590.883426110]: katana gripper grasp query service started on topic /gripper_grasp_status
[ INFO] [1418850590.895750683]: katana gripper grasp hand posture action server started on topic /gripper_grasp_posture_controller
[ INFO] [1418850601.349945571]: Sending trajectory to Katana arm...
Error flag received:
[ERROR] [1418850601.820043052]: FirmwareException: Motor collision? Perhaps we tried to send a trajectory that the arm couldn't follow. (exception in executeTrajectory(): FirmwareException : 'CRC does not match
')
[ERROR] [1418850601.820121784]: Problem while transferring trajectory to Katana arm, aborting
^C[katana-3] killing on exit
[robot_state_publisher-2] killing on exit
[rosout-1] killing on exit
[master] killing on exit
shutting down processing monitor...
... shutting down processing monitor complete
done

Thanks and looking forward to any suggestions.

2014-11-04 13:35:25 -0500 received badge  Scholar (source)
2014-11-04 13:34:30 -0500 commented answer "katana_driver" connectivity with Katana Arm 6M180

Everything worked fine. Thanks.

I didn't have to set the use_serial param to false as the katana I have is 400 6M180 (not 300). So for I have been setting the KATANA_TYPE environment variable to katana_300_6m180 which was wrong.

I installed the `libarmadillo-dev' and rosmake worked too.

2014-10-25 09:31:20 -0500 commented answer "katana_driver" connectivity with Katana Arm 6M180

Thank you Martin, I am sorry I am still new here.

2014-10-25 09:29:49 -0500 received badge  Notable Question (source)
2014-10-24 20:01:16 -0500 received badge  Popular Question (source)
2014-10-24 17:21:59 -0500 received badge  Editor (source)
2014-10-24 16:55:25 -0500 answered a question "katana_driver" connectivity with Katana Arm 6M180

Hi Martin,

Thanks for the reply.

I have connected the arm via USB. The IP is configured exactly as you said and the ping command (ping 192.168.1.1) works fine.

Where to set those two parameters i.e. use_serial=false and ip="192.168.1.1"? I already see them set in katana.cpp source file.

Following here are more details that you have asked for.

"What Katana arm do you have, exactly? Is it e.g. a Katana 300 6M180?" Yes, it is Katana 300 6m180.

"Does it have an internal/external control board or none?" Internal.

"What ROS version are you using?" ROS Hydro on Linux 13.04

"What's your katana_driver branch? Did you make any local changes?" I have actually installed the uos-ros-pkg using the link given below. No local changes were made. http://wiki.ros.org/uos-ros-pkg I have set the KATANA_TYPE as given in here: http://wiki.ros.org/katana_driver

"What launch files are you starting?"

I tried two but am getting error with both of them.

Error when launching katana.launch: which first says "trying to connect to katana (serial port:/dev/ttyS0) and then says cannot get/set attributes on '/dev/ttyS0'.

[ INFO] [1414186519.459809847]: trying to connect to katana (serial port: /dev/ttyS0) ...
[ERROR] [1414186519.460287872]: Exception during initialization: 'Cannot get/set attributes on '/dev/ttyS0''
katana: /usr/include/boost/smart_ptr/shared_ptr.hpp:424: T* boost::shared_ptr<T>::operator->() const [with T = CLMBase]: Assertion `px != 0' failed.
[katana-3] process has died [pid 6947, exit code -6, cmd /home/ial/ros-hydro/dry/katana_driver/katana/bin/katana __name:=katana __log:=/home/ial/.ros/log/a63e0d8e-5bc5-11e4-aedf-8ca98271a938/katana-3.log].
log file: /home/ial/.ros/log/a63e0d8e-5bc5-11e4-aedf-8ca98271a938/katana-3*.log

Error when launching katana_300_6m180.launch: says the parameter katana_type was not set!, while I set it as: $ export KATANA_TYPE="katana_300_6m180".

[ERROR] [1414186440.273708266]: Parameter katana_type was not set!
[katana-3] process has died [pid 6840, exit code 255, cmd /home/ial/ros-hydro/dry/katana_driver/katana/bin/katana __name:=katana __log:=/home/ial/.ros/log/7709afdc-5bc5-11e4-9157-8ca98271a938/katana-3.log].
log file: /home/ial/.ros/log/7709afdc-5bc5-11e4-9157-8ca98271a938/katana-3*.log

Lastly, when I rosmake katana_driver, I get the following errors:

[ 92%] Built target katana
  In file included from /home/ial/ros-hydro/dry/katana_driver/katana/include/katana/KNIKinematics.h:42:0,
                   from /home/ial/ros-hydro/dry/katana_driver/katana/src/KNIKinematics.cpp:25:
  /home/ial/ros-hydro/dry/katana_driver/katana/include/katana/EulerTransformationMatrices.hh:34:21: fatal error: armadillo: No such file or directory
  compilation terminated.
  make[3]: *** [CMakeFiles/katana_arm_kinematics.dir/src/KNIKinematics.cpp.o] Error 1
  make[3]: Leaving directory `/home/ial/ros-hydro/dry/katana_driver/katana/build'
  make[2]: *** [CMakeFiles/katana_arm_kinematics.dir/all] Error 2
  make[2]: Leaving directory `/home/ial/ros-hydro/dry/katana_driver/katana/build'
  make[1]: *** [all] Error 2
  make[1]: Leaving directory `/home/ial/ros-hydro/dry/katana_driver/katana/build'
-------------------------------------------------------------------------------}
[ rosmake ] Output from build of package katana written to:
[ rosmake ]    /home/ial/.ros/rosmake/rosmake_output-20141024-145203/katana/build_output.log
[rosmake-2] Finished <<< katana [FAIL] [ 8.39 seconds ]                                                              
[ rosmake ] Halting due to failure ...
(more)
2014-10-22 18:06:01 -0500 asked a question "katana_driver" connectivity with Katana Arm 6M180

Hi all,

I am struggling with the katana_driver in ROS (hydro) for the 6M180 arm. When I try to launch the Katana node, I get the following error:

process[katana-3]: started with pid [24264] [ INFO] [1414017395.500394067]: trying to connect to katana (serial port: /dev/ttyS0) ... [ERROR] [1414017395.500853297]: Exception during initialization: 'Cannot get/set attributes on '/dev/ttyS0''

.

.

Does it mean the arm has to be connected serially? Or I will have to use a USB to serial converter because I have connected it via USB. But here is another question, isn't that USB treated as a network device?

Could anyone please help how to connect the arm to the laptop in order for katana_driver to work properly?

Any comments/suggestions are most welcome.

Thank you,

Muhammad Tufail

2014-10-22 17:43:18 -0500 answered a question Problem following trajectories using "Katana_driver" with Katana 300 6m180

Hi all,

I am sorry if it is not directly related to the topic here.

I am struggling with the katana_driver in ROS (hydro) for the 6M180 arm. When I try to launch the Katana node, I get the following error:

Does it mean the arm has to be connected serially? Or I will have to use a USB to serial converter because I have connected it via USB. But here is another question, isn't that USB treated as a network device?

Could anyone please help how to connect the arm to the laptop in order for katana_driver to work properly?

Any comments/suggestions are most welcome.

Thanks. Muhammad Tufail UBC, Canada

2013-08-26 01:18:58 -0500 received badge  Taxonomist
2013-04-29 17:17:24 -0500 received badge  Famous Question (source)
2013-04-01 15:11:34 -0500 commented answer Has anyone used any haptic devices in conjunction with ROS?

Hi marc,

Would it be possible to use phantom omni device to control PR2 arms simulated in gazebo? If yes then what changes need to be made in the pr2_omni_teleop package? How would be the performance in real-time (as the Omni device is real, running at 1KHz, and PR2 is a simulated one)?

Thanks.

2013-03-26 22:37:22 -0500 commented answer Can we merge $PATH and $ROS_PACKAGE_PATH???

I have already tried the same code with Phantom Premium 6-DoF. It works and nothing needs to be changed except the device name. But yes the code has much room for improvement. Any success on pr2_omni_teleop?

2013-03-26 22:28:17 -0500 received badge  Notable Question (source)
2013-03-26 22:20:25 -0500 commented answer Can we merge $PATH and $ROS_PACKAGE_PATH???

I will try to improve the code as much as i can. I will welcome if you can share your code through GitHub.

Currently I am getting some errors while playing with the pr2_omni_teleop package. I will post another question about it if i get seriously stuck.

Thanks.

2013-03-26 22:17:15 -0500 commented answer Can we merge $PATH and $ROS_PACKAGE_PATH???

and yes you are right, doing the 'manual' kinematics calculation doesn't make any sense. I don't know why the transform from base to tool frame is calculated when you can easily get it through the OpenHaptics function call hdGetDoublev(HD_CURRENT_TRANSFORM, ... ). Similarly for the linear velocity.

2013-03-26 22:10:40 -0500 commented answer Can we merge $PATH and $ROS_PACKAGE_PATH???

Hi Boris,

I want use the Phantom Omni device for teleoperation. I want to try the pr2_omni_teleop package where the Cartesian position and velocity from Omni device is published to the PR2 robot and in return the force is fed back to it.

2013-03-26 11:04:20 -0500 received badge  Popular Question (source)
2013-03-26 08:41:21 -0500 commented question Can we merge $PATH and $ROS_PACKAGE_PATH???

I have resolved it.

As the packages (dependencies) were already installed using Ubuntu Software Centre, so ROS didn't need to re-install them. I just removed those rosdep entries from the manifest file in package and built it again. It worked.

Thanks for your replies anyway. I appreciate it.

2013-03-26 07:57:10 -0500 commented answer Can we merge $PATH and $ROS_PACKAGE_PATH???

I am sorry the ROS output is not properly formatted. Its just messed up. I don't know how to make it appear more readable. I am new to ROS ;(

2013-03-26 07:54:54 -0500 answered a question Can we merge $PATH and $ROS_PACKAGE_PATH???

Hello, thanks for your replies.

Actually i want to use the phantom_omni ROS package.

But when i want to rosmake or rosdep check the package, ROS says that it can't find the dependencies. But i remember i have installed all these packages one by one through Ubuntu Software Centre. Following is the output with me:

tufail@tufail-desktop:~/electric_workspace$ rosdep check phantom_omni
Failed to find rosdep libxt-dev for package phantom_omni on OS:ubuntu version:oneiric
Failed to find rosdep x11proto-print-dev for package phantom_omni on OS:ubuntu version:oneiric
Failed to find rosdep libdrm-dev for package phantom_omni on OS:ubuntu version:oneiric
Failed to find rosdep freeglut3-dev for package phantom_omni on OS:ubuntu version:oneiric
Failed to find rosdep x11proto-gl-dev for package phantom_omni on OS:ubuntu version:oneiric
Failed to find rosdep libx11-dev for package phantom_omni on OS:ubuntu version:oneiric
Failed to find rosdep x11proto-dri2-dev for package phantom_omni on OS:ubuntu version:oneiric
Failed to find rosdep tcsh for package phantom_omni on OS:ubuntu version:oneiric
Failed to find rosdep libncurses5-dev for package phantom_omni on OS:ubuntu version:oneiric
Failed to find rosdep libmotif-dev for package phantom_omni on OS:ubuntu version:oneiric
Failed to find rosdep libexpat1-dev for package phantom_omni on OS:ubuntu version:oneiric
Failed to find rosdep libglw1-mesa for package phantom_omni on OS:ubuntu version:oneiric
error in processing scripts ABORTING: Rosdeps [u'libxt-dev', u'x11proto-print-dev',
u'libdrm-dev', u'freeglut3-dev', u'x11proto-gl-dev', u'libx11-dev', u'x11proto
dri2-dev', u'tcsh', u'libncurses5-dev', u'libmotif-dev', u'libexpat1-dev', u'libglw1
mesa'] could not be resolved
Failed to find rosdep libxt-dev for package phantom_omni on OS:ubuntu version:oneiric
Failed to find rosdep x11proto-print-dev for package phantom_omni on OS:ubuntu version:oneiric
Failed to find rosdep libdrm-dev for package phantom_omni on OS:ubuntu version:oneiric
Failed to find rosdep freeglut3-dev for package phantom_omni on OS:ubuntu version:oneiric
Failed to find rosdep x11proto-gl-dev for package phantom_omni on OS:ubuntu version:oneiric
Failed to find rosdep libx11-dev for package phantom_omni on OS:ubuntu version:oneiric
Failed to find rosdep x11proto-dri2-dev for package phantom_omni on OS:ubuntu version:oneiric
Failed to find rosdep tcsh for package phantom_omni on OS:ubuntu version:oneiric
Failed to find rosdep libncurses5-dev for package phantom_omni on OS:ubuntu version:oneiric
Failed to find rosdep libmotif-dev for package phantom_omni on OS:ubuntu version:oneiric
Failed to find rosdep libexpat1-dev for package phantom_omni on OS:ubuntu version:oneiric
Failed to find rosdep libglw1-mesa for package phantom_omni on OS:ubuntu version:oneiric
The following rosdeps were not installed [u'libxt-dev', u'x11proto-print-dev', u'libdrm-dev', u'freeglut3-dev', u'x11proto-gl-dev', u'libx11-dev', u'x11proto-dri2-dev', u'tcsh', u'libncurses5-dev', u'libmotif-dev', u'libexpat1-dev', u'libglw1-mesa']
2013-03-26 05:18:56 -0500 asked a question Can we merge $PATH and $ROS_PACKAGE_PATH???

Hi,

I want to know if it is possible to add stuff in the $PATH variable to $ROS_PACKAGE_PATH? Actually i want to do this because i have already installed some debian packages on Ubuntu (11.1) which were required by the OpenHaptics toolkit (ver 3.0) but ROS can't find them. If i run the OpenHaptics example directly, it works. But when i try to run some OpenHaptics code through ROS, it doesn't.

Any help will be appreciated greatly.

Thanks.

Following are some additional details:

$ echo $PATH /opt/ros/electric/ros/bin:/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games

and

$ROS_PACKAGE_PATH /home/tufail/electric_workspace/sandbox/phantom:/opt/ros/electric/stacks

The following Debian packages have already been installed but ROS can't find them:

freeglut3-dev
libdrm-dev
libexpat1-dev
libglw1-mesa
libmotif-dev
libncurses5-dev
libx11-dev
libxt-dev    
tcsh
x11proto-dri2-dev
x11proto-gl-dev
x11proto-print-dev