Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F63152209
cellulounity.h
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sat, May 18, 02:55
Size
1 KB
Mime Type
text/x-c
Expires
Mon, May 20, 02:55 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
17738064
Attached To
R9807 cellulo-lua
cellulounity.h
View Options
#ifndef CELLULOUNITY_H
#define CELLULOUNITY_H
#include <stdint.h>
extern
"C"
{
// cellulo
int64_t
newRobot
();
void
destroyRobot
(
int64_t
robot
);
void
setLocalAdapterMacAddr
(
int64_t
robot
,
const
char
*
localAdapterMacAddr
);
void
setAutoConnect
(
int64_t
robot
,
int64_t
autoConnect
);
void
setMacAddr
(
int64_t
robot
,
const
char
*
macAddr
);
void
connectToServer
(
int64_t
robot
);
void
setGoalVelocity
(
int64_t
robot
,
float
vx
,
float
vy
,
float
w
);
void
setGoalPose
(
int64_t
robot
,
float
x
,
float
y
,
float
theta
,
float
v
,
float
w
);
void
setGoalPosition
(
int64_t
robot
,
float
x
,
float
y
,
float
v
);
void
clearTracking
(
int64_t
robot
);
void
clearHapticFeedback
(
int64_t
robot
);
void
setVisualEffect
(
int64_t
robot
,
int64_t
effect
,
int64_t
r
,
int64_t
g
,
int64_t
b
,
int64_t
value
);
void
setCasualBackdriveAssistEnabled
(
int64_t
robot
,
int64_t
enabled
);
void
setHapticBackdriveAssist
(
int64_t
robot
,
float
xAssist
,
float
yAssist
,
float
thetaAssist
);
void
reset
(
int64_t
robot
);
void
simpleVibrate
(
int64_t
robot
,
float
iX
,
float
iY
,
float
iTheta
,
int64_t
period
,
int64_t
duration
);
float
getX
(
int64_t
robot
);
float
getY
(
int64_t
robot
);
float
getTheta
(
int64_t
robot
);
int64_t
getKidnapped
(
int64_t
robot
);
// demo
void
demoPrint
();
int64_t
getVar
();
}
#endif
// CELLULOUNITY_H
Event Timeline
Log In to Comment