-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels