Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
J
jrl-walkgen
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
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
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Guilhem Saurel
jrl-walkgen
Commits
98690674
Commit
98690674
authored
14 years ago
by
Olivier Stasse
Browse files
Options
Downloads
Patches
Plain Diff
Revert "Add method"
This reverts commit
5dd65079
.
parent
57ad1573
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/privatepgtypes.cpp
+4
-13
4 additions, 13 deletions
src/privatepgtypes.cpp
src/privatepgtypes.h
+6
-12
6 additions, 12 deletions
src/privatepgtypes.h
with
10 additions
and
25 deletions
src/privatepgtypes.cpp
+
4
−
13
View file @
98690674
...
...
@@ -129,7 +129,7 @@ namespace PatternGeneratorJRL
void
convex_hull_t
::
rotate
(
double
angle
)
convex_hull_t
::
rotate
(
const
double
&
angle
)
{
double
c_a
=
cos
(
angle
);
...
...
@@ -143,7 +143,7 @@ namespace PatternGeneratorJRL
}
convex_hull_s
::
convex_hull_s
(
int
size
)
convex_hull_s
::
convex_hull_s
(
const
int
&
size
)
{
resize
(
size
);
reset
();
...
...
@@ -162,7 +162,7 @@ namespace PatternGeneratorJRL
}
void
convex_hull_t
::
resize
(
int
size
)
convex_hull_t
::
resize
(
const
int
&
size
)
{
X
.
resize
(
size
);
Y
.
resize
(
size
);
...
...
@@ -178,20 +178,11 @@ namespace PatternGeneratorJRL
}
}
void
linear_inequality_t
::
clear
()
void
linear_inequality_t
::
clear
()
{
x
.
D
.
clear
();
y
.
D
.
clear
();
dc
.
clear
();
}
void
linear_inequality_t
::
resize
(
int
n_rows
,
int
n_cols
,
bool
preserve
)
{
x
.
D
.
resize
(
n_rows
,
n_cols
,
preserve
);
y
.
D
.
resize
(
n_rows
,
n_cols
,
preserve
);
dc
.
resize
(
n_rows
,
preserve
);
}
}
This diff is collapsed.
Click to expand it.
src/privatepgtypes.h
+
6
−
12
View file @
98690674
...
...
@@ -36,7 +36,7 @@
namespace
PatternGeneratorJRL
{
//
/ \brief
Support state of the robot at a certain point in time
// Support state of the robot at a certain point in time
struct
support_state_s
{
int
Phase
,
Foot
,
StepsLeft
,
StepNumber
;
...
...
@@ -51,7 +51,7 @@ namespace PatternGeneratorJRL
};
typedef
struct
support_state_s
support_state_t
;
//
/ \brief
Support state of the robot at a certain point in time
// Support state of the robot at a certain point in time
struct
com_s
{
MAL_VECTOR
(
x
,
double
);
...
...
@@ -114,7 +114,6 @@ namespace PatternGeneratorJRL
};
typedef
struct
reference_s
reference_t
;
/// \brief Solution
struct
solution_s
{
/// \brief Whole solution array
...
...
@@ -167,14 +166,14 @@ namespace PatternGeneratorJRL
/// \brief Rotate the points around the origin by angle
///
/// \param[in] angle
void
rotate
(
double
angle
);
void
rotate
(
const
double
&
angle
);
/// \brief Resize members to the desired number of points
///
/// \param[in] size
void
resize
(
int
size
);
void
resize
(
const
int
&
size
);
/// \brief Set the
vectors from array
s
/// \brief Set the
point value
s
///
/// \param[in] X
/// \param[in] Y
...
...
@@ -183,7 +182,7 @@ namespace PatternGeneratorJRL
/// \brief Set all points to zero
void
reset
();
convex_hull_s
(
int
size
);
convex_hull_s
(
const
int
&
size
);
convex_hull_s
();
};
...
...
@@ -201,14 +200,9 @@ namespace PatternGeneratorJRL
boost_ublas
::
vector
<
double
>
dc
;
/// \brief Classifier
int
type
;
/// \brief Fill all elements with zeros
void
clear
();
/// \brief Resize all elements
void
resize
(
int
n_rows
,
int
n_cols
,
bool
preserve
);
};
typedef
struct
linear_inequality_s
linear_inequality_t
;
...
...
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