ros-industrial / ur_modern_driver

(deprecated) ROS 1 driver for CB1 and CB2 controllers with UR5 or UR10 robots from Universal Robots
Apache License 2.0
301 stars 341 forks source link

Assertion failed due to BinParser #374

Open mjpatell opened 4 years ago

mjpatell commented 4 years ago

Hello,

I am controlling UR10 robot using ros_control. While launching ur_modern_driver with ros component, I am getting following error from BinParser.

.../ur_modern_driver/bin_parser.h:89: T BinParser::peek() [with T = long unsigned int]: Assertion `buf_pos_ + sizeof(T) <= buf_end_' failed.

I run my urdf and controller configuration in the simulation and it works fine without having any error (universal_robot package). I used same configuration for ur_modern_driver and could not able to launch successfully.

I am using kinetic as ros_distro and same branches from ur_modern_driver and universal_robot.

Is there anything wrong, I configured? or Is anyone facing same problem and solve it?

Thank you.

gavanderhoorn commented 4 years ago

Please tell us which controller series you have.

CB2, CB3 or e-Series?

Also:

I run my urdf and controller configuration in the simulation and it works fine without having any error (universal_robot package).

this is nice, but not something really useful.

There is nothing in the driver which is affected by anything in ur_gazebo.

mjpatell commented 4 years ago

Hello,

Thank you for prompt reply. I am using CB2 with UR10 robot.

gavanderhoorn commented 4 years ago

Which system software version?

mjpatell commented 4 years ago

Hello, That was my mistake as I build workspace with catkin build instead of catkin_make as mention on README.md. Is this a really issue?

gavanderhoorn commented 4 years ago

Hello, That was my mistake as I build workspace with catkin build instead of catkin_make as mention on README.md. Is this a really issue?

No.

That should not have any effect.

You still haven't told us the system software version.

ghost commented 3 years ago

Hello, I am facing the same Issue. I am using a UR5 with a CB1 and Polyscope 1.5.7849 with Ubuntu 16.04 and ros-kinetic.

Is it possible that this has sth to do with ur_msgs, as this package is now included in the new ur_robot_driver and a dependency of ur_modern_driver?

Do you have a Idea where the problem could be? @ipa-mjp: Did you solve your problem?

Thanks for your help <3

Edit: The problem has something to do, when you installl the ur_driver before the ur_modern_driver.