Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
robotran
mbsysc
Commits
84b70efa
Commit
84b70efa
authored
Mar 11, 2021
by
François Heremans
Browse files
Updated all examples
parent
e459d8ee
Changes
16
Hide whitespace changes
Inline
Side-by-side
ExampleProjects/MultiplePendulum/userfctR/realtime/user_realtime_events.c
View file @
84b70efa
...
...
@@ -6,12 +6,14 @@
* In order to use C++ features, you just need to change the extension of this file (.c) to .cc (or .cpp).
*/
#ifdef SDL
#include
"realtime.h"
#include
"events_sdl.h"
#include
"user_realtime.h"
#if defined(REAL_TIME)
/*! \brief handle inputs comming from the keyboard
*
* \param[in,out] mbs_data Robotran main structure
...
...
@@ -41,7 +43,7 @@
* wait_key(realtime, cur_t_usec, 0.1);
* }
*/
void
user_keyboard
(
MbsData
*
mbs_data
,
Simu_realtime
*
realtime
,
int
cur_t_usec
,
const
U
int8
*
keystates
)
void
user_keyboard
(
MbsData
*
mbs_data
,
Simu_realtime
*
realtime
,
int
cur_t_usec
,
const
u
int8
_t
*
keystates
)
{
}
...
...
ExampleProjects/PendulumPneumaticCushion/userfctR/realtime/user_realtime_events.c
View file @
84b70efa
...
...
@@ -6,12 +6,14 @@
* In order to use C++ features, you just need to change the extension of this file (.c) to .cc (or .cpp).
*/
#ifdef SDL
#include
"realtime.h"
#include
"events_sdl.h"
#include
"user_realtime.h"
#if defined(REAL_TIME)
/*! \brief handle inputs comming from the keyboard
*
* \param[in,out] mbs_data Robotran main structure
...
...
@@ -41,7 +43,7 @@
* wait_key(realtime, cur_t_usec, 0.1);
* }
*/
void
user_keyboard
(
MbsData
*
mbs_data
,
Simu_realtime
*
realtime
,
int
cur_t_usec
,
const
U
int8
*
keystates
)
void
user_keyboard
(
MbsData
*
mbs_data
,
Simu_realtime
*
realtime
,
int
cur_t_usec
,
const
u
int8
_t
*
keystates
)
{
}
...
...
ExampleProjects/PendulumSpring123/userfctR/PendulumSpring1/realtime/user_realtime_events.c
View file @
84b70efa
...
...
@@ -6,12 +6,14 @@
* In order to use C++ features, you just need to change the extension of this file (.c) to .cc (or .cpp).
*/
#ifdef SDL
#include
"realtime.h"
#include
"events_sdl.h"
#include
"user_realtime.h"
#if defined(REAL_TIME)
/*! \brief handle inputs comming from the keyboard
*
* \param[in,out] mbs_data Robotran main structure
...
...
@@ -41,7 +43,7 @@
* wait_key(realtime, cur_t_usec, 0.1);
* }
*/
void
user_keyboard
(
MbsData
*
mbs_data
,
Simu_realtime
*
realtime
,
int
cur_t_usec
,
const
U
int8
*
keystates
)
void
user_keyboard
(
MbsData
*
mbs_data
,
Simu_realtime
*
realtime
,
int
cur_t_usec
,
const
u
int8
_t
*
keystates
)
{
}
...
...
ExampleProjects/PendulumSpring123/userfctR/PendulumSpring2/realtime/user_realtime_events.c
View file @
84b70efa
...
...
@@ -6,12 +6,14 @@
* In order to use C++ features, you just need to change the extension of this file (.c) to .cc (or .cpp).
*/
#ifdef SDL
#include
"realtime.h"
#include
"events_sdl.h"
#include
"user_realtime.h"
#if defined(REAL_TIME)
/*! \brief handle inputs comming from the keyboard
*
* \param[in,out] mbs_data Robotran main structure
...
...
@@ -41,7 +43,7 @@
* wait_key(realtime, cur_t_usec, 0.1);
* }
*/
void
user_keyboard
(
MbsData
*
mbs_data
,
Simu_realtime
*
realtime
,
int
cur_t_usec
,
const
U
int8
*
keystates
)
void
user_keyboard
(
MbsData
*
mbs_data
,
Simu_realtime
*
realtime
,
int
cur_t_usec
,
const
u
int8
_t
*
keystates
)
{
}
...
...
ExampleProjects/PendulumSpring123/userfctR/PendulumSpring3/realtime/user_realtime_events.c
View file @
84b70efa
...
...
@@ -6,12 +6,14 @@
* In order to use C++ features, you just need to change the extension of this file (.c) to .cc (or .cpp).
*/
#ifdef SDL
#include
"realtime.h"
#include
"events_sdl.h"
#include
"user_realtime.h"
#if defined(REAL_TIME)
/*! \brief handle inputs comming from the keyboard
*
* \param[in,out] mbs_data Robotran main structure
...
...
@@ -41,7 +43,7 @@
* wait_key(realtime, cur_t_usec, 0.1);
* }
*/
void
user_keyboard
(
MbsData
*
mbs_data
,
Simu_realtime
*
realtime
,
int
cur_t_usec
,
const
U
int8
*
keystates
)
void
user_keyboard
(
MbsData
*
mbs_data
,
Simu_realtime
*
realtime
,
int
cur_t_usec
,
const
u
int8
_t
*
keystates
)
{
}
...
...
ExampleProjects/PendulumSpringC/userfctR/realtime/user_realtime_events.c
View file @
84b70efa
...
...
@@ -6,14 +6,14 @@
* In order to use C++ features, you just need to change the extension of this file (.c) to .cc (or .cpp).
*/
#ifdef SDL
#define HAVE_M_PI // avoid redefinition of M_PI when including SDL
#include
"realtime.h"
#include
"events_sdl.h"
#include
"user_realtime.h"
#if defined(REAL_TIME)
/*! \brief handle inputs comming from the keyboard
*
* \param[in,out] mbs_data Robotran main structure
...
...
@@ -43,7 +43,7 @@
* wait_key(realtime, cur_t_usec, 0.1);
* }
*/
void
user_keyboard
(
MbsData
*
mbs_data
,
Simu_realtime
*
realtime
,
int
cur_t_usec
,
const
U
int8
*
keystates
)
void
user_keyboard
(
MbsData
*
mbs_data
,
Simu_realtime
*
realtime
,
int
cur_t_usec
,
const
u
int8
_t
*
keystates
)
{
}
...
...
ExampleProjects/TutorialProjects/modellingFeatures/1_Bodies_and_Joints/userfctR/realtime/user_realtime_events.c
View file @
84b70efa
...
...
@@ -6,12 +6,14 @@
* In order to use C++ features, you just need to change the extension of this file (.c) to .cc (or .cpp).
*/
#ifdef SDL
#include
"realtime.h"
#include
"events_sdl.h"
#include
"user_realtime.h"
#if defined(REAL_TIME)
/*! \brief handle inputs comming from the keyboard
*
* \param[in,out] mbs_data Robotran main structure
...
...
@@ -41,7 +43,7 @@
* wait_key(realtime, cur_t_usec, 0.1);
* }
*/
void
user_keyboard
(
MbsData
*
mbs_data
,
Simu_realtime
*
realtime
,
int
cur_t_usec
,
const
U
int8
*
keystates
)
void
user_keyboard
(
MbsData
*
mbs_data
,
Simu_realtime
*
realtime
,
int
cur_t_usec
,
const
u
int8
_t
*
keystates
)
{
}
...
...
ExampleProjects/TutorialProjects/modellingFeatures/2_Links/userfctR/realtime/user_realtime_events.c
View file @
84b70efa
...
...
@@ -6,12 +6,14 @@
* In order to use C++ features, you just need to change the extension of this file (.c) to .cc (or .cpp).
*/
#ifdef SDL
#include
"realtime.h"
#include
"events_sdl.h"
#include
"user_realtime.h"
#if defined(REAL_TIME)
/*! \brief handle inputs comming from the keyboard
*
* \param[in,out] mbs_data Robotran main structure
...
...
@@ -41,7 +43,7 @@
* wait_key(realtime, cur_t_usec, 0.1);
* }
*/
void
user_keyboard
(
MbsData
*
mbs_data
,
Simu_realtime
*
realtime
,
int
cur_t_usec
,
const
U
int8
*
keystates
)
void
user_keyboard
(
MbsData
*
mbs_data
,
Simu_realtime
*
realtime
,
int
cur_t_usec
,
const
u
int8
_t
*
keystates
)
{
}
...
...
ExampleProjects/TutorialProjects/modellingFeatures/3_Cuts/userfctR/realtime/user_realtime_events.c
View file @
84b70efa
...
...
@@ -6,12 +6,14 @@
* In order to use C++ features, you just need to change the extension of this file (.c) to .cc (or .cpp).
*/
#ifdef SDL
#include
"realtime.h"
#include
"events_sdl.h"
#include
"user_realtime.h"
#if defined(REAL_TIME)
/*! \brief handle inputs comming from the keyboard
*
* \param[in,out] mbs_data Robotran main structure
...
...
@@ -41,7 +43,7 @@
* wait_key(realtime, cur_t_usec, 0.1);
* }
*/
void
user_keyboard
(
MbsData
*
mbs_data
,
Simu_realtime
*
realtime
,
int
cur_t_usec
,
const
U
int8
*
keystates
)
void
user_keyboard
(
MbsData
*
mbs_data
,
Simu_realtime
*
realtime
,
int
cur_t_usec
,
const
u
int8
_t
*
keystates
)
{
}
...
...
ExampleProjects/TutorialProjects/modellingFeatures/4_Driven_variable/userfctR/realtime/user_realtime_events.c
View file @
84b70efa
...
...
@@ -6,12 +6,14 @@
* In order to use C++ features, you just need to change the extension of this file (.c) to .cc (or .cpp).
*/
#ifdef SDL
#include
"realtime.h"
#include
"events_sdl.h"
#include
"user_realtime.h"
#if defined(REAL_TIME)
/*! \brief handle inputs comming from the keyboard
*
* \param[in,out] mbs_data Robotran main structure
...
...
@@ -41,7 +43,7 @@
* wait_key(realtime, cur_t_usec, 0.1);
* }
*/
void
user_keyboard
(
MbsData
*
mbs_data
,
Simu_realtime
*
realtime
,
int
cur_t_usec
,
const
U
int8
*
keystates
)
void
user_keyboard
(
MbsData
*
mbs_data
,
Simu_realtime
*
realtime
,
int
cur_t_usec
,
const
u
int8
_t
*
keystates
)
{
}
...
...
ExampleProjects/TutorialProjects/modellingFeatures/5_Sensors/userfctR/realtime/user_realtime_events.c
View file @
84b70efa
...
...
@@ -6,12 +6,14 @@
* In order to use C++ features, you just need to change the extension of this file (.c) to .cc (or .cpp).
*/
#ifdef SDL
#include
"realtime.h"
#include
"events_sdl.h"
#include
"user_realtime.h"
#if defined(REAL_TIME)
/*! \brief handle inputs comming from the keyboard
*
* \param[in,out] mbs_data Robotran main structure
...
...
@@ -41,7 +43,7 @@
* wait_key(realtime, cur_t_usec, 0.1);
* }
*/
void
user_keyboard
(
MbsData
*
mbs_data
,
Simu_realtime
*
realtime
,
int
cur_t_usec
,
const
U
int8
*
keystates
)
void
user_keyboard
(
MbsData
*
mbs_data
,
Simu_realtime
*
realtime
,
int
cur_t_usec
,
const
u
int8
_t
*
keystates
)
{
}
...
...
ExampleProjects/TutorialProjects/modellingFeatures/6_External_Force/userfctR/realtime/user_realtime_events.c
View file @
84b70efa
...
...
@@ -6,12 +6,14 @@
* In order to use C++ features, you just need to change the extension of this file (.c) to .cc (or .cpp).
*/
#ifdef SDL
#include
"realtime.h"
#include
"events_sdl.h"
#include
"user_realtime.h"
#if defined(REAL_TIME)
/*! \brief handle inputs comming from the keyboard
*
* \param[in,out] mbs_data Robotran main structure
...
...
@@ -41,7 +43,7 @@
* wait_key(realtime, cur_t_usec, 0.1);
* }
*/
void
user_keyboard
(
MbsData
*
mbs_data
,
Simu_realtime
*
realtime
,
int
cur_t_usec
,
const
U
int8
*
keystates
)
void
user_keyboard
(
MbsData
*
mbs_data
,
Simu_realtime
*
realtime
,
int
cur_t_usec
,
const
u
int8
_t
*
keystates
)
{
}
...
...
ExampleProjects/TutorialProjects/modellingFeatures/7_User_constraints/userfctR/realtime/user_realtime_events.c
View file @
84b70efa
...
...
@@ -6,12 +6,14 @@
* In order to use C++ features, you just need to change the extension of this file (.c) to .cc (or .cpp).
*/
#ifdef SDL
#include
"realtime.h"
#include
"events_sdl.h"
#include
"user_realtime.h"
#if defined(REAL_TIME)
/*! \brief handle inputs comming from the keyboard
*
* \param[in,out] mbs_data Robotran main structure
...
...
@@ -41,7 +43,7 @@
* wait_key(realtime, cur_t_usec, 0.1);
* }
*/
void
user_keyboard
(
MbsData
*
mbs_data
,
Simu_realtime
*
realtime
,
int
cur_t_usec
,
const
U
int8
*
keystates
)
void
user_keyboard
(
MbsData
*
mbs_data
,
Simu_realtime
*
realtime
,
int
cur_t_usec
,
const
u
int8
_t
*
keystates
)
{
}
...
...
ExampleProjects/TutorialProjects/modellingFeatures/8_User_derivatives/userfctR/realtime/user_realtime_events.c
View file @
84b70efa
...
...
@@ -6,12 +6,14 @@
* In order to use C++ features, you just need to change the extension of this file (.c) to .cc (or .cpp).
*/
#ifdef SDL
#include
"realtime.h"
#include
"events_sdl.h"
#include
"user_realtime.h"
#if defined(REAL_TIME)
/*! \brief handle inputs comming from the keyboard
*
* \param[in,out] mbs_data Robotran main structure
...
...
@@ -41,7 +43,7 @@
* wait_key(realtime, cur_t_usec, 0.1);
* }
*/
void
user_keyboard
(
MbsData
*
mbs_data
,
Simu_realtime
*
realtime
,
int
cur_t_usec
,
const
U
int8
*
keystates
)
void
user_keyboard
(
MbsData
*
mbs_data
,
Simu_realtime
*
realtime
,
int
cur_t_usec
,
const
u
int8
_t
*
keystates
)
{
}
...
...
ExampleProjects/TutorialProjects/modellingFeatures/9_Tips/userfctR/realtime/user_realtime_events.c
View file @
84b70efa
...
...
@@ -6,12 +6,14 @@
* In order to use C++ features, you just need to change the extension of this file (.c) to .cc (or .cpp).
*/
#ifdef SDL
#include
"realtime.h"
#include
"events_sdl.h"
#include
"user_realtime.h"
#if defined(REAL_TIME)
/*! \brief handle inputs comming from the keyboard
*
* \param[in,out] mbs_data Robotran main structure
...
...
@@ -41,7 +43,7 @@
* wait_key(realtime, cur_t_usec, 0.1);
* }
*/
void
user_keyboard
(
MbsData
*
mbs_data
,
Simu_realtime
*
realtime
,
int
cur_t_usec
,
const
U
int8
*
keystates
)
void
user_keyboard
(
MbsData
*
mbs_data
,
Simu_realtime
*
realtime
,
int
cur_t_usec
,
const
u
int8
_t
*
keystates
)
{
}
...
...
ExampleProjects/car/userfctR/realtime/user_realtime_events.c
View file @
84b70efa
...
...
@@ -6,12 +6,14 @@
* In order to use C++ features, you just need to change the extension of this file (.c) to .cc (or .cpp).
*/
#ifdef SDL
#include
"realtime.h"
#include
"events_sdl.h"
#include
"user_realtime.h"
#if defined(REAL_TIME)
/*! \brief handle inputs comming from the keyboard
*
* \param[in,out] mbs_data Robotran main structure
...
...
@@ -41,7 +43,7 @@
* wait_key(realtime, cur_t_usec, 0.1);
* }
*/
void
user_keyboard
(
MbsData
*
mbs_data
,
Simu_realtime
*
realtime
,
int
cur_t_usec
,
const
U
int8
*
keystates
)
void
user_keyboard
(
MbsData
*
mbs_data
,
Simu_realtime
*
realtime
,
int
cur_t_usec
,
const
u
int8
_t
*
keystates
)
{
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment