A class that organizes multiple virtual joint walls. More...
#include <joint_wall.h>
Public Member Functions | |
std::array< double, num_dof > | computeTorque (const std::array< double, num_dof > &q, const std::array< double, num_dof > &dq) |
Computes the torques generated by virtual walls. More... | |
JointWallContainer (const std::array< double, num_dof > &soft_upper_joint_position_limits, const std::array< double, num_dof > &soft_lower_joint_position_limits, const std::array< double, num_dof > &PD_zone_widths, const std::array< double, num_dof > &D_zone_widths, const std::array< double, num_dof > &PD_zone_stiffnesses, const std::array< double, num_dof > &PD_zone_dampings, const std::array< double, num_dof > &D_zone_dampings) | |
Creates a new virtual joint position wall instance. More... | |
JointWallContainer ()=delete | |
void | reset () |
Resets the initialized flags of all walls to false. More... | |
Private Attributes | |
std::array< std::unique_ptr< JointWall >, num_dof > | joint_walls_ |
A class that organizes multiple virtual joint walls.
num_dof | the number of joints to create virtual walls for. |
Definition at line 137 of file joint_wall.h.
|
inline |
Creates a new virtual joint position wall instance.
(see joint_wall.h for more details on joint wall parameters.)
[in] | soft_upper_joint_position_limits | |
[in] | soft_lower_joint_position_limits | |
[in] | PD_zone_widths | |
[in] | D_zone_widths | |
[in] | PD_zone_stiffnesses | |
[in] | PD_zone_dampings | |
[in] | D_zone_dampings |
Definition at line 151 of file joint_wall.h.
|
delete |
|
inline |
Computes the torques generated by virtual walls.
[in] | q | the current joint positions. |
[in] | dq | the current joint velocities. |
Definition at line 174 of file joint_wall.h.
|
inline |
Resets the initialized flags of all walls to false.
After calling reset, the next call to computeTorque resets the internal states for joint position and velocity (q, dq). Call this method before restarting your controller, e.g. when the position might have changed during control pauses due to guiding.
Definition at line 189 of file joint_wall.h.
|
private |
Definition at line 196 of file joint_wall.h.