ADVRHumanoids / CartesianInterface

Package for generic cartesian control of floating base robots. It includes a ROS-based front end, as well as a programmatic API that can be used inside a real-time loop.
GNU General Public License v3.0
20 stars 1 forks source link

Robot moves a bit when commanding a car_frame velocity in Position control Mode #64

Closed torydebra closed 2 years ago

torydebra commented 3 years ago

Hi,

As title, I noticed this .

Steps:

But if I send a twist command :

rostopic pub /cartesian/car_frame/velocity_reference geometry_msgs/TwistStamped "header:
  seq: 0
  stamp:
    secs: 0
    nsecs: 0
  frame_id: ''
twist:
  linear:
    x: 0.1
    y: 0.0
    z: 0.0
  angular:
    x: 0.0
    y: 0.0
    z: 0.0" -r 100

I can see the robot move a bit forward and then stop, as if he remembers only after a few moments that the car_frame is controlled in position.

When setting the velocity control mode:

rosservice call /cartesian/car_frame/set_control_mode "ctrl_mode: 'velocity'" 

The robot correctly responds to the velocity command moving forward until the command is published

Is this normal ? @alaurenzi

alaurenzi commented 3 years ago

Yes, the two commands are applied in parallel