Problem with hanging node using pigpio

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

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/core.py", line 520, in signal_shutdown h() File "/home/ubuntu/catkin_ws/src/AFMER_test/src/motor_node.py", line 331, in shutdown self.set_speed(0, 0, 0, 0) File "/home/ubuntu/catkin_ws/src/AFMER_test/src/motor_node.py", line 242, in set_speed self.pwm.update() File "/home/ubuntu/catkin_ws/src/AFMER_test/src/wavePWM.py", line 278, in update self.pi.wave_delete(self.old_wid) File "/usr/local/lib/python3.6/dist-packages/pigpio.py", line 2377, in wave_delete return _u2i(_pigpio_command(self.sl, _PI_CMD_WVDEL, wave_id, 0)) File "/usr/local/lib/python3.6/dist-packages/pigpio.py", line 1011, in _u2i raise error(error_text(v)) pigpio.error: 'non existent wave id'

Rosnode list now is showing strange nodes named:

/rostopic_1972_1608297097342

/rostopic_2001_1608297153368

/rostopic_2049_1608297269198

motors_node: https://github.com/embeddedadam/AFMER...

encoders_node: https://github.com/embeddedadam/AFMER...

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