Improve comments in mjplugin.h, align to header standard (column 35).

PiperOrigin-RevId: 525868504
Change-Id: I8edfcea737e6e94458015a0e4fa6522cf89a1230
This commit is contained in:
Yuval Tassa
2023-04-20 15:38:31 -07:00
committed by Copybara-Service
parent 2d69b158aa
commit 0295d972cb
2 changed files with 23 additions and 23 deletions
+5 -5
View File
@@ -1206,9 +1206,9 @@ struct mjpResourceProvider_ {
}; };
typedef struct mjpResourceProvider_ mjpResourceProvider; typedef struct mjpResourceProvider_ mjpResourceProvider;
typedef enum mjtPluginCapabilityBit_ { typedef enum mjtPluginCapabilityBit_ {
mjPLUGIN_ACTUATOR = 1<<0, mjPLUGIN_ACTUATOR = 1<<0, // actuator forces
mjPLUGIN_SENSOR = 1<<1, mjPLUGIN_SENSOR = 1<<1, // sensor measurements
mjPLUGIN_PASSIVE = 1<<2, mjPLUGIN_PASSIVE = 1<<2, // passive forces
} mjtPluginCapabilityBit; } mjtPluginCapabilityBit;
struct mjpPlugin_ { struct mjpPlugin_ {
const char* name; // globally unique name identifying the plugin const char* name; // globally unique name identifying the plugin
@@ -1216,8 +1216,8 @@ struct mjpPlugin_ {
int nattribute; // number of configuration attributes int nattribute; // number of configuration attributes
const char* const* attributes; // name of configuration attributes const char* const* attributes; // name of configuration attributes
int capabilityflags; // bitfield of mjtPluginCapabilityBit specifying plugin capabilities int capabilityflags; // plugin capabilities: bitfield of mjtPluginCapabilityBit
int needstage; // an mjtStage enum value specifying the sensor computation stage int needstage; // sensor computation stage (mjtStage)
// number of mjtNums needed to store the state of a plugin instance (required) // number of mjtNums needed to store the state of a plugin instance (required)
int (*nstate)(const mjModel* m, int instance); int (*nstate)(const mjModel* m, int instance);
+5 -5
View File
@@ -48,9 +48,9 @@ typedef struct mjpResourceProvider_ mjpResourceProvider;
//---------------------------------- Plugins ------------------------------------------------------- //---------------------------------- Plugins -------------------------------------------------------
typedef enum mjtPluginCapabilityBit_ { typedef enum mjtPluginCapabilityBit_ {
mjPLUGIN_ACTUATOR = 1<<0, mjPLUGIN_ACTUATOR = 1<<0, // actuator forces
mjPLUGIN_SENSOR = 1<<1, mjPLUGIN_SENSOR = 1<<1, // sensor measurements
mjPLUGIN_PASSIVE = 1<<2, mjPLUGIN_PASSIVE = 1<<2, // passive forces
} mjtPluginCapabilityBit; } mjtPluginCapabilityBit;
struct mjpPlugin_ { struct mjpPlugin_ {
@@ -59,8 +59,8 @@ struct mjpPlugin_ {
int nattribute; // number of configuration attributes int nattribute; // number of configuration attributes
const char* const* attributes; // name of configuration attributes const char* const* attributes; // name of configuration attributes
int capabilityflags; // bitfield of mjtPluginCapabilityBit specifying plugin capabilities int capabilityflags; // plugin capabilities: bitfield of mjtPluginCapabilityBit
int needstage; // an mjtStage enum value specifying the sensor computation stage int needstage; // sensor computation stage (mjtStage)
// number of mjtNums needed to store the state of a plugin instance (required) // number of mjtNums needed to store the state of a plugin instance (required)
int (*nstate)(const mjModel* m, int instance); int (*nstate)(const mjModel* m, int instance);