Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
N
ndcurves
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
loco-3d
ndcurves
Commits
55440195
Commit
55440195
authored
5 years ago
by
Guilhem Saurel
Browse files
Options
Downloads
Patches
Plain Diff
README: specify langages for syntax highlight
parent
fca30a1e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#7323
failed
5 years ago
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+9
-9
9 additions, 9 deletions
README.md
with
9 additions
and
9 deletions
README.md
+
9
−
9
View file @
55440195
...
...
@@ -25,7 +25,7 @@ The library comes with an helper class to automatically generate end-effector tr
For instance, to create a 2 second long trajectory from the point (0,0,0) to (1,1,0), with a waypoint
at (0.5,0.5,0.5), one can use the following code:
```
```
cpp
typedef
std
::
pair
<
double
,
Eigen
::
Vector3d
>
Waypoint
;
typedef
std
::
vector
<
Waypoint
>
T_Waypoint
;
...
...
@@ -45,7 +45,7 @@ exact_cubic_t* eff_traj = effector_spline(waypoints.begin(),waypoints.end());
```
If rotation of the effector must be considered, the code is almost the same:
```
```
cpp
// initial rotation is 0, end rotation is a rotation by Pi around x axis
quat_t
init_rot
(
0
,
0
,
0
,
1
),
end_rot
(
1
,
0
,
0
,
0
);
effector_spline_rotation
eff_traj_rot
(
waypoints
.
begin
(),
waypoints
.
end
(),
init_quat
,
end_quat
);
...
...
@@ -79,25 +79,25 @@ git clone --recursive https://github.com/stonneau/spline.git $SPLINE_DIR
```
The library is header only, so the build only serves to build the tests and python bindings:
```
cd $SPLINE_DIR && mkdir build && cd build
cmake .. && make
../bin/tests
```
sh
cd
$SPLINE_DIR
&&
mkdir
build
&&
cd
build
cmake ..
&&
make
../bin/tests
```
If everything went fine you should obtain the following output:
```
```
sh
performing tests...
no errors found
```
### Optional: Python bindings installation
To install the Python bindings, in the CMakeLists.txt file, first enable the BUILD_PYTHON_INTERFACE option:
```
```
cmake
OPTION
(
BUILD_PYTHON_INTERFACE
"Build the python binding"
ON
)
```
Then rebuild the library:
```
```
sh
cd
$SPLINE_DIR
/build
cmake
-DCMAKE_INSTALL_PREFIX
=
${
DEVEL_DIR
}
/install ..
make
install
...
...
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