led controller via sdk
JoenHune opened this issue · 0 comments
Hi! Recently I am developing a C++ version high level SDK and corresponding ROS package according to this guide on RoboMaster EP(repo: link.
However, my implement of LEDs' control via C++ TCP socket connection seems cannot work normally, neither do official python sample work well (sent a command led control comp all r 255 g 0 b 0 effect solid
and then fail
was responded from the robot). My currently setup is chassis only, is that makes the things wrong?
Plus, chassis control via 3.2.3.1. 底盘运动速度控制 also seems not work sensitively in some situations, such as the FOLLOWING example. In this case, the robot will keep running in x = -3.5 && y = 0
with the command is x = -1.19 && y = -3.5
in fact. Fortunately I can refine those same cases with a short break-time setting speed to 0, although which is a little bit weird in high level developing.
[Command] chassis speed x -3.500000 y -0.000000 z -0.000000
[Response] ok
[Command] chassis speed x -3.500000 y -0.000000 z -0.000000
[Response] ok
[Command] chassis speed x -3.500000 y -0.813889 z -0.000000
[Response] ok
[Command] chassis speed x -3.500000 y -1.836838 z -0.000000
[Response] ok
[Command] chassis speed x -3.324149 y -1.962092 z -0.000000
[Response] ok
[Command] chassis speed x -3.095678 y -2.313794 z -0.000000
[Response] ok
[Command] chassis speed x -2.832351 y -2.571836 z -0.000000
[Response] ok
[Command] chassis speed x -1.899802 y -3.358330 z -0.000000
[Response] ok
[Command] chassis speed x -1.635576 y -3.416572 z -0.000000
[Response] ok
[Command] chassis speed x -1.462424 y -3.500000 z -0.000000
[Response] ok
[Command] chassis speed x -1.330198 y -3.500000 z -0.000000
[Response] ok
[Command] chassis speed x -1.193925 y -3.500000 z -0.000000
[Response] ok