Open mao8-explorer opened 1 year ago
void FrankaController::gravity_command_loop(){ while(ros::ok()){ robot_.control([&](const franka::RobotState& robot_state, franka::Duration period) -> franka::Torques { publishRobotState(robot_state); return tau_z_; } ); } }
\ Respect teacher, why only one line return tau_z_ can solve all problem? \ (put arm in gravity compensation mode) \ I didn't find any code related to tau_z_ .\ Can you teach me how?
return tau_z_
tau_z_
This is a simple controller commanding zero torque for each joint. Gravity is compensated by the robot.
\ Respect teacher, why only one line
return tau_z_
can solve all problem? \ (put arm in gravity compensation mode) \ I didn't find any code related totau_z_
.\ Can you teach me how?