38 hduVector3Dd forceDirection;
40 hduVector3Dd sent_force(0.0,0.0,0.0);
42 static hduVector3Dd phantom_position;
85 double radius = (phantom_position - main_spheresPosition).magnitude();
93 radius = (phantom_position - back_spheresPosition).magnitude();
113 if(max_back_sphereRadius){}
123 double radius = (phantom_position - main_spheresPosition).magnitude();
131 hduVector3Dd u = hduVector3Dd(1.0,0.0,0.0);
133 hduVector3Dd v30 = hduVector3Dd(0.0,-sin(
DegToRad(30.0)),cos(
DegToRad(30.0)));
135 hduVector3Dd v45 = hduVector3Dd(0.0,sin(
DegToRad(45.0)),cos(
DegToRad(45.0)));
213 static double x_border_p, x_border_m, y_border_p, y_border_m;
226 return hduVector3Dd(0.0,0.0,0.0);
228 std::cout<<
"X: "<<x<<std::endl;
229 std::cout<<
"Y: "<<y<<std::endl;
haptic_rendering_funx.h file for this module. Contains includes, prototypes and global vars...
hduVector3Dd TransformWorldCoordinatesToPHaNToMCoordinates(hduVector3Dd source)
Function to rotate world oriented vector to PHANToM referencial.
double arm_main_sphere_max_Radius
double arm_main_sphere_min_Radius
double GetRobotDimension(int dimension)
Outputs selected robot dimension length.
Type CalculatePolyForceMagnitude(Type x)
Function to determine force values using the polynomial force behaviour law.
double leg_main_sphere_min_Radius
hduVector3Dd arm_back_spherePosition
double demo2_distance_to_plane
hduVector3Dd demo_2_point_1
Eigen::Vector3d COG_detached_leg_right
Shared struture that holds robot/device information.
hduVector3Dd Leg_COP_Monitoring(void *pUserData)
Function that tracks the detached leg COP and creates a force vector.
Eigen::Vector3d COG_detached_leg_left
hduVector3Dd demo_2_point_3
hduVector3Dd leg_back_spherePosition
double leg_back_sphereRadius
hduVector3Dd CalculateWorkspaceDemoForce(void *pUserData)
Function to define the workspace haptic demo force.
bool manual_speed_control
double arm_back_sphereRadius
hduVector3Dd arm_main_spheresPosition
hduVector3Dd m_devicePosition
void Demo2_BuildPlane(void *pUserData)
Function to define the plane for plane drawing demo.
Type CalculatePlaneForceMagnitude(Type x)
Function to determine force values of the plane in the plane drawing demo.
hduVector3Dd leg_main_spheresPosition
double leg_main_sphere_max_Radius
RobotKinData robot_kin_data
hduVector3Dd CalculatePlaneDrawingDemoForce(void *pUserData)
Function to define the plane drawing haptic demo force.
Type DegToRad(Type deg)
Templated degree to radian conversion function.
Type CalculateExponentialForceMagnitude(Type x)
Function to determine force values using the exponential force behaviour law.
hduVector3Dd demo_2_point_2
hduVector3Dd leg_front_spherePosition