I try to use mavros and rostopic to send a command to the robot. In mode GUIDED, after using arm throttle, the command sending and execution are no problem, but the BlueRov2 will not stop at the goal, then it will go back at once.
Please look at the gif.
My rostopic command is below:
rostopic pub -1 /mavros/setpoint_velocity/cmd_vel geometry_msgs/TwistStamped “header: auto
So, please help me to solve the return problem of blueRov2. I want it to stop at the goal that I send. By the way, I also use mavproxy command, which is no problem to control it with position x, y, z command.
Thanks for your help. Yes, it is the same problem as my previous one. But, this time, I analyze the source code of the packages that I am using. I find that this rostopic command is sent at the final stage to control ROV. So, this time, I directly test the command. So, the return problem is still existing. Do you mean the ArduSub version will affect the control of the ROV command?
Sorry, I tested the new version ArduSub last week. I think it works. The new version fixes the “springy” behavior.
Thanks a lot.
However, I found a new problem. When ROV is under the water, the moving of ROV is good by using rostopic command. But, when the ROV floated on the surface of the water, the command control doesn’t work. Is it normal?