8000 added Tm · weizx208/robotics-toolbox-python@5025917 · GitHub
[go: up one dir, main page]

Skip to content
8000

Commit 5025917

Browse files
committed
added Tm
1 parent 1d38d62 commit 5025917

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

roboticstoolbox/core/structs.h

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
#define STRUCTS_H
1010

1111
// #include "linalg.h"
12-
// #ifdef __cplusplus
13-
// #include <Eigen/Dense>
14-
// #endif /* __cplusplus */
12+
#ifdef __cplusplus
13+
#include <Eigen/Dense>
14+
#endif /* __cplusplus */
1515

1616
#ifdef __cplusplus
1717
extern "C"
@@ -31,10 +31,13 @@ extern "C"
3131
int isflip;
3232
int jindex;
3333
int axis;
34-
double *T; /* link static transform */
35-
// Eigen::Map<Eigen::Matrix<double, 4, 4, Eigen::RowMajor>> Tm;
34+
double *T; /* link static transform */
3635
double *qlim; /* joint limits */
3736
void (*op)(double *data, double eta);
37+
38+
#ifdef __cplusplus
39+
Eigen::Map<Eigen::Matrix<double, 4, 4, Eigen::RowMajor>> Tm;
40+
#endif /* __cplusplus */
3841
};
3942

4043
// struct ET

0 commit comments

Comments
 (0)
0