Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Simox
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Florian Leander Singer
Simox
Commits
b64b52e3
Commit
b64b52e3
authored
5 years ago
by
Rainer Kartmann
Browse files
Options
Downloads
Patches
Plain Diff
Add sensor types.
parent
f4ab6187
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
VirtualRobot/MJCF/elements/types/sensor.cpp
+40
-4
40 additions, 4 deletions
VirtualRobot/MJCF/elements/types/sensor.cpp
VirtualRobot/MJCF/elements/types/sensor.h
+1031
-5
1031 additions, 5 deletions
VirtualRobot/MJCF/elements/types/sensor.h
with
1071 additions
and
9 deletions
VirtualRobot/MJCF/elements/types/sensor.cpp
+
40
−
4
View file @
b64b52e3
...
...
@@ -3,7 +3,43 @@
//#include "../Document.h"
using
namespace
mjcf
;
const
std
::
string
SensorSection
::
tag
=
"sensor"
;
namespace
mjcf
{
const
std
::
string
SensorSection
::
tag
=
"sensor"
;
const
std
::
string
TouchSensor
::
tag
=
"touch"
;
const
std
::
string
AccelerometerSensor
::
tag
=
"accelerometer"
;
const
std
::
string
VelocimeterSensor
::
tag
=
"velocimeter"
;
const
std
::
string
GyroSensor
::
tag
=
"gyro"
;
const
std
::
string
ForceSensor
::
tag
=
"force"
;
const
std
::
string
TorqueSensor
::
tag
=
"torque"
;
const
std
::
string
MagnetometerSensor
::
tag
=
"magnetometer"
;
const
std
::
string
RangeFinderSensor
::
tag
=
"rangefinder"
;
const
std
::
string
JointPositionSensor
::
tag
=
"jointpos"
;
const
std
::
string
JointVelocitySensor
::
tag
=
"jointvel"
;
const
std
::
string
TendonPositionSensor
::
tag
=
"tendonpos"
;
const
std
::
string
TendonVelocitySensor
::
tag
=
"tendonvel"
;
const
std
::
string
ActuatorPositionSensor
::
tag
=
"actuatorpos"
;
const
std
::
string
ActuatorVelocitySensor
::
tag
=
"actuatorvel"
;
const
std
::
string
ActuatorForceSensor
::
tag
=
"actuatorfrc"
;
const
std
::
string
BallJointValueSensor
::
tag
=
"ballquat"
;
const
std
::
string
BallAngularVelocitySensor
::
tag
=
"ballangvel"
;
const
std
::
string
JointLimitPositionSensor
::
tag
=
"jointlimitpos"
;
const
std
::
string
JointLimitVelocitySensor
::
tag
=
"jointlimitvel"
;
const
std
::
string
JointLimitForceSensor
::
tag
=
"jointlimitfrc"
;
const
std
::
string
TendonLimitPositionSensor
::
tag
=
"tendonlimitpos"
;
const
std
::
string
TendonLimitVelocitySensor
::
tag
=
"tendonlimitvel"
;
const
std
::
string
TendonLimitForceSensor
::
tag
=
"tendonlimitfrc"
;
const
std
::
string
FramePositionSensor
::
tag
=
"framepos"
;
const
std
::
string
FrameOrientationSensor
::
tag
=
"framequat"
;
const
std
::
string
FrameXAxisSensor
::
tag
=
"framexaxis"
;
const
std
::
string
FrameYAxisSensor
::
tag
=
"frameyaxis"
;
const
std
::
string
FrameZAxisSensor
::
tag
=
"framezaxis"
;
const
std
::
string
FrameLinearVelocitySensor
::
tag
=
"framelinvel"
;
const
std
::
string
FrameAngularVelocitySensor
::
tag
=
"frameangvel"
;
const
std
::
string
FrameLinearAccelerationSensor
::
tag
=
"framelinacc"
;
const
std
::
string
FrameAngularAccelerationSensor
::
tag
=
"frameangacc"
;
const
std
::
string
SubtreeCenterOfMassSensor
::
tag
=
"subtreecom"
;
const
std
::
string
SubtreeLinearVelocitySensor
::
tag
=
"subtreelinvel"
;
const
std
::
string
SubtreeAngularMomentumSensor
::
tag
=
"subtreeangmom"
;
}
This diff is collapsed.
Click to expand it.
VirtualRobot/MJCF/elements/types/sensor.h
+
1031
−
5
View file @
b64b52e3
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment