Skip to content

Question No Response from Motor Received #1

@ahanjaya

Description

@ahanjaya

Hi, I face a problem to run the any of the code,

It will return like following:

(robstride) hsuhanjaya@asus-a14-fa401ui:~/Repositories/robot/Robstride$ python findangle.py 
Enabling motor in current control mode...

Disabling motor...
Traceback (most recent call last):
  File "/home/hsuhanjaya/Repositories/robot/Robstride/findangle.py", line 15, in <module>
    client.write_param(MOTOR_ID, 'run_mode', robstride.client.RunMode.Current)
  File "/home/hsuhanjaya/anaconda3/envs/robstride/lib/python3.10/site-packages/robstride/client.py", line 130, in write_param
    resp = self._recv()
  File "/home/hsuhanjaya/anaconda3/envs/robstride/lib/python3.10/site-packages/robstride/client.py", line 147, in _recv
    raise Exception('No response from motor received')
Exception: No response from motor received

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/hsuhanjaya/Repositories/robot/Robstride/findangle.py", line 44, in <module>
    client.disable(MOTOR_ID)
  File "/home/hsuhanjaya/anaconda3/envs/robstride/lib/python3.10/site-packages/robstride/client.py", line 88, in disable
    resp = self._recv()
  File "/home/hsuhanjaya/anaconda3/envs/robstride/lib/python3.10/site-packages/robstride/client.py", line 147, in _recv
    raise Exception('No response from motor received')
Exception: No response from motor received

I'm using USB2CAN from official Robstride and did following command:

sudo slcand -o -c -s8 /dev/ttyUSB0 can0
sudo ifconfig can0 up
sudo ifconfig can0 txqueuelen 100

the following CAN0 is showing as well

hsuhanjaya@asus-a14-fa401ui:~/Workspaces/catkin_ws$ ifconfig 
can0: flags=193<UP,RUNNING,NOARP>  mtu 16
        unspec 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00  txqueuelen 100  (UNSPEC)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 312  bytes 2496 (2.4 KB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

I'm not sure what is the problem, but I can control the motor in windows using MotorStudio software.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions