Problem with hanging node using pigpio

asked 2020-12-18 08:44:34 -0600

embeddedadam gravatar image

Hi, I'm buiding four motor robot based on rpi3b+ and ros melodic. I'm also using pigpio library to create pwm waveforms to control motors. When I run motors_node and encoders_node after few seconds to few minutes everything is good. After that time motor_node hangs without any output. When I kill it with rosnode kill it shows me this traceback:

Traceback (most recent call last): File "/home/ubuntu/catkin_ws/src/ros_comm/clients/rospy/src/rospy/", line 520, in signal_shutdown h() File "/home/ubuntu/catkin_ws/src/AFMER_test/src/", line 331, in shutdown self.set_speed(0, 0, 0, 0) File "/home/ubuntu/catkin_ws/src/AFMER_test/src/", line 242, in set_speed self.pwm.update() File "/home/ubuntu/catkin_ws/src/AFMER_test/src/", line 278, in update self.pi.wave_delete(self.old_wid) File "/usr/local/lib/python3.6/dist-packages/", line 2377, in wave_delete return _u2i(_pigpio_command(, _PI_CMD_WVDEL, wave_id, 0)) File "/usr/local/lib/python3.6/dist-packages/", line 1011, in _u2i raise error(error_text(v)) pigpio.error: 'non existent wave id'

Rosnode list now is showing strange nodes named:






Im using SSH connection. I wasted few days looking over internet after this and have no idea what it can be or how to debug it. Problem occurs also on kinetic.

edit retag flag offensive close merge delete