22 #ifndef __HAPTIX_COMM_HAPTIX_SIM_H
23 #define __HAPTIX_COMM_HAPTIX_SIM_H
32 #define hxsMAXCONTACT 30
151 hxsDeviceInfo *_deviceinfo);
172 hxsContact *_contact);
196 const hxsBody *_body,
197 const hxsJoint *_joint);
210 const float *_torque,
float angvel[30][3]
Angular velocity (expmap representation).
Definition: haptix_sim.h:63
float acc[hxMAXJOINT]
Acceleration.
Definition: haptix_sim.h:82
float linacc[30][3]
Linear acceleration.
Definition: haptix_sim.h:66
float vel[hxMAXJOINT]
Velocity.
Definition: haptix_sim.h:79
Simulated device information, beyond the information provided in hxDeviceInfo.
Definition: haptix_sim.h:39
hxResult hxs_getjacobian(int _target, int _link, const float *_point, float *_jacobian)
Get Jacobian of global point attached to robot link (index between 1 and njoint-1) size of Jacobian m...
float angacc[30][3]
Angular acceleration.
Definition: haptix_sim.h:69
float torque_passive[hxMAXJOINT]
Torque due to limits, damping, friction.
Definition: haptix_sim.h:88
hxResult hxs_message(const char *_message)
Display a text message in the simulator.
Information about bodies.
Definition: haptix_sim.h:51
Information about joints.
Definition: haptix_sim.h:73
hxResult hxs_getbody(int _target, hxsBody *_body)
Get information about bodies.
float pos[hxMAXJOINT]
Position.
Definition: haptix_sim.h:76
int nstatic
Number of static objects.
Definition: haptix_sim.h:45
hxResult hxs_getcontact(int _target, hxsContact *_contact)
Get information about active contacts.
hxResult hxs_getjoint(int _target, hxsJoint *_joint)
Get information about joints.
hxResult hxs_getdeviceinfo(int _target, hxsDeviceInfo *_deviceinfo)
Get simulation information.
#define hxMAXJOINT
Maximum number of joints.
Definition: haptix.h:40
hxResult hxs_setstate(int _target, const hxsBody *_body, const hxsJoint *_joint)
Set simulation state (position and velocity) as follows: the robot base and objects are set from hxBo...
#define hxsMAXBODY
Maximum number of bodies.
Definition: haptix_sim.h:35
float torque_motor[hxMAXJOINT]
Torque due to actuation.
Definition: haptix_sim.h:85
float linvel[30][3]
Linear velocity.
Definition: haptix_sim.h:60
float quat[30][4]
Orientation (unit quaternion).
Definition: haptix_sim.h:57
#define hxsMAXCONTACT
Maximum number of contacts.
Definition: haptix_sim.h:32
int ndynamic
Number of dynamic objects.
Definition: haptix_sim.h:42
float pos[30][3]
Position.
Definition: haptix_sim.h:54
hxResult hxs_updatedirect(int _target, const float *_torque, hxSensor *_sensor, int _flg_sleep)
Synchronous update with direct torque control:
hxResult
API return codes.
Definition: haptix.h:60
Structures and functions for the primary HAPTIX API.