Skip to content
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

TypeError: unsupported operand type(s) for -: 'NoneType' and 'int'** #14

Open
1991dhanraj opened this issue Dec 29, 2017 · 2 comments
Open

Comments

@1991dhanraj
Copy link

Hi,
When i run the roboclaw ros package to control the speed of the motor i get the following error.

File "/home/dhanraj/catkin_ws/src/roboclaw_ros/roboclaw_node/nodes/roboclaw_node.py", line 77, in ## update_publish
if abs(enc_left - self.last_enc_left) > 20000:
TypeError: unsupported operand type(s) for -: 'NoneType' and 'int'

[roboclaw_node-1] process has died [pid 10701, exit code 1, cmd /home/dhanraj/catkin_ws/src/roboclaw_ros/roboclaw_node/nodes/roboclaw_node.py __name:=roboclaw_node __log:=/home/dhanraj/.ros/log/576dcfaa-ebe6-11e7-9751-74e543172118/roboclaw_node-1.log].
log file: /home/dhanraj/.ros/log/576dcfaa-ebe6-11e7-9751-74e543172118/roboclaw_node-1*.log

When i run the scripts the motors does not movie at all and i get the above error after the script has run for couple of minutes. Any help on this is appreciated.

regards
Dhanraj

@vishu2287
Copy link

@1991dhanraj . did you solve this? if so can you share your solution?

@DariusStu
Copy link

Has any solution been found for this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants