Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
sot-core
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
Show more breadcrumbs
Stack Of Tasks
sot-core
Commits
0657e21a
Commit
0657e21a
authored
14 years ago
by
Francois Bleibel
Browse files
Options
Downloads
Patches
Plain Diff
Corrected installation path and name of plugins. Some minor bugfixes.
parent
e3454fe9
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
include/sot-core/feature-abstract.h
+8
-7
8 additions, 7 deletions
include/sot-core/feature-abstract.h
src/CMakeLists.txt
+14
-6
14 additions, 6 deletions
src/CMakeLists.txt
unitTesting/CMakeLists.txt
+5
-1
5 additions, 1 deletion
unitTesting/CMakeLists.txt
with
27 additions
and
14 deletions
include/sot-core/feature-abstract.h
+
8
−
7
View file @
0657e21a
...
@@ -38,8 +38,9 @@ namespace ml = maal::boost;
...
@@ -38,8 +38,9 @@ namespace ml = maal::boost;
/* STD */
/* STD */
#include
<string>
#include
<string>
using
namespace
dynamicgraph
;
namespace
sot
{
namespace
sot
{
namespace
dg
=
dynamicgraph
;
/* --------------------------------------------------------------------- */
/* --------------------------------------------------------------------- */
/* --- CLASS ----------------------------------------------------------- */
/* --- CLASS ----------------------------------------------------------- */
...
@@ -150,13 +151,13 @@ class SOT_CORE_EXPORT FeatureAbstract
...
@@ -150,13 +151,13 @@ class SOT_CORE_EXPORT FeatureAbstract
/*! \name Input signals:
/*! \name Input signals:
@{ */
@{ */
/*! \brief This signal specifies the desired value \f$ {\bf s}^*(t) \f$ */
/*! \brief This signal specifies the desired value \f$ {\bf s}^*(t) \f$ */
SignalPtr
<
FeatureAbstract
*
,
int
>
desiredValueSIN
;
dg
::
SignalPtr
<
FeatureAbstract
*
,
int
>
desiredValueSIN
;
/*! \brief This vector specifies which dimension are used to perform the computation.
/*! \brief This vector specifies which dimension are used to perform the computation.
For instance let us assume that the feature is a 3D point. If only the Y-axis should
For instance let us assume that the feature is a 3D point. If only the Y-axis should
be used for computing error, activation and Jacobian, then the vector to specify
be used for computing error, activation and Jacobian, then the vector to specify
is \f$ [ 0 1 0] \f$.*/
is \f$ [ 0 1 0] \f$.*/
SignalPtr
<
Flags
,
int
>
selectionSIN
;
dg
::
SignalPtr
<
Flags
,
int
>
selectionSIN
;
/*! @} */
/*! @} */
/*! \name Output signals:
/*! \name Output signals:
...
@@ -164,17 +165,17 @@ class SOT_CORE_EXPORT FeatureAbstract
...
@@ -164,17 +165,17 @@ class SOT_CORE_EXPORT FeatureAbstract
/*! \brief This signal returns the error between the desired value and
/*! \brief This signal returns the error between the desired value and
the current value : \f$ {\bf s}^*(t) - {\bf s}(t)\f$ */
the current value : \f$ {\bf s}^*(t) - {\bf s}(t)\f$ */
SignalTimeDependant
<
ml
::
Vector
,
int
>
errorSOUT
;
dg
::
SignalTimeDependant
<
ml
::
Vector
,
int
>
errorSOUT
;
/*! \brief This signal returns the Jacobian of the current value
/*! \brief This signal returns the Jacobian of the current value
according to the robot state: \f$ J(t) = \frac{\delta{\bf s}^*(t)}{\delta {\bf q}(t)}\f$ */
according to the robot state: \f$ J(t) = \frac{\delta{\bf s}^*(t)}{\delta {\bf q}(t)}\f$ */
SignalTimeDependant
<
ml
::
Matrix
,
int
>
jacobianSOUT
;
dg
::
SignalTimeDependant
<
ml
::
Matrix
,
int
>
jacobianSOUT
;
/*! \brief Compute the new value of the feature \f$ {\bf s}(t)\f$ */
/*! \brief Compute the new value of the feature \f$ {\bf s}(t)\f$ */
SignalTimeDependant
<
ml
::
Vector
,
int
>
activationSOUT
;
dg
::
SignalTimeDependant
<
ml
::
Vector
,
int
>
activationSOUT
;
/*! \brief Returns the dimension of the feature as an output signal. */
/*! \brief Returns the dimension of the feature as an output signal. */
SignalTimeDependant
<
unsigned
int
,
int
>
dimensionSOUT
;
dg
::
SignalTimeDependant
<
unsigned
int
,
int
>
dimensionSOUT
;
/*! \brief This method write a graph description on the file named FileName. */
/*! \brief This method write a graph description on the file named FileName. */
virtual
std
::
ostream
&
writeGraph
(
std
::
ostream
&
os
)
const
;
virtual
std
::
ostream
&
writeGraph
(
std
::
ostream
&
os
)
const
;
...
...
This diff is collapsed.
Click to expand it.
src/CMakeLists.txt
+
14
−
6
View file @
0657e21a
...
@@ -2,6 +2,9 @@
...
@@ -2,6 +2,9 @@
# Copyright
# Copyright
#
#
# The main library name
SET
(
SOTCORE_LIB_NAME
${
PROJECT_NAME
}
)
#This project will create many shared libraries as plugins, listed here
#This project will create many shared libraries as plugins, listed here
SET
(
plugins
SET
(
plugins
sot/sot-qr
sot/sot-qr
...
@@ -10,6 +13,8 @@ SET(plugins
...
@@ -10,6 +13,8 @@ SET(plugins
sot/sot
sot/sot
)
)
SET
(
LIBRARY_NAME
${
SOTCORE_LIB_NAME
}
)
#sot-core library sources
#sot-core library sources
SET
(
${
PROJECT_NAME
}
_SOURCES
SET
(
${
PROJECT_NAME
}
_SOURCES
debug/debug.cpp
debug/debug.cpp
...
@@ -65,22 +70,16 @@ SET(${PROJECT_NAME}_SOURCES
...
@@ -65,22 +70,16 @@ SET(${PROJECT_NAME}_SOURCES
task/task-abstract.cpp
task/task-abstract.cpp
sot/flags.cpp
sot/flags.cpp
sot/sot-qr.cpp
sot/memory-task-sot.cpp
sot/memory-task-sot.cpp
sot/sot.cpp
sot/rotation-simple.cpp
sot/rotation-simple.cpp
sot/weighted-sot.cpp
sot/solver-hierarchical-inequalities.cpp
sot/solver-hierarchical-inequalities.cpp
sot/sot-h.cpp
factory/additional-functions.cpp
factory/additional-functions.cpp
factory/factory.cpp
factory/factory.cpp
factory/pool.cpp
factory/pool.cpp
factory/command/import.cpp
factory/command/import.cpp
)
)
SET
(
LIBRARY_NAME
${
PROJECT_NAME
}
)
INCLUDE_DIRECTORIES
(
${
CMAKE_SOURCE_DIR
}
/include
)
INCLUDE_DIRECTORIES
(
${
CMAKE_SOURCE_DIR
}
/include
)
ADD_DEFINITIONS
(
-DDEBUG=2
)
ADD_DEFINITIONS
(
-DDEBUG=2
)
...
@@ -147,6 +146,7 @@ SET_TARGET_PROPERTIES(${LIBRARY_NAME}
...
@@ -147,6 +146,7 @@ SET_TARGET_PROPERTIES(${LIBRARY_NAME}
INSTALL
(
TARGETS
${
LIBRARY_NAME
}
INSTALL
(
TARGETS
${
LIBRARY_NAME
}
DESTINATION
${
CMAKE_INSTALL_PREFIX
}
/lib
)
DESTINATION
${
CMAKE_INSTALL_PREFIX
}
/lib
)
#Plugins compilation, link, and installation
#Plugins compilation, link, and installation
FOREACH
(
plugin
${
plugins
}
)
FOREACH
(
plugin
${
plugins
}
)
...
@@ -167,11 +167,19 @@ FOREACH(plugin ${plugins})
...
@@ -167,11 +167,19 @@ FOREACH(plugin ${plugins})
ADD_LIBRARY
(
${
LIBRARY_NAME
}
ADD_LIBRARY
(
${
LIBRARY_NAME
}
SHARED
SHARED
${
plugin
}
.cpp
)
${
plugin
}
.cpp
)
#remove the "lib" prefix from the plugin output name
SET_TARGET_PROPERTIES
(
${
LIBRARY_NAME
}
PROPERTIES
PREFIX
""
)
SET_TARGET_PROPERTIES
(
${
LIBRARY_NAME
}
SET_TARGET_PROPERTIES
(
${
LIBRARY_NAME
}
PROPERTIES
PROPERTIES
SOVERSION
${
PROJECT_VERSION
}
SOVERSION
${
PROJECT_VERSION
}
INSTALL_RPATH
${
CMAKE_INSTALL_PREFIX
}
/lib/plugin
)
INSTALL_RPATH
${
CMAKE_INSTALL_PREFIX
}
/lib/plugin
)
# Link with sot-core library
TARGET_LINK_LIBRARIES
(
${
LIBRARY_NAME
}
${
SOTCORE_LIB_NAME
}
)
# Add lapack compilation flags and link to library libLapack.so
# Add lapack compilation flags and link to library libLapack.so
ADD_DEFINITIONS
(
${
LAPACK_CFLAGS
}
)
ADD_DEFINITIONS
(
${
LAPACK_CFLAGS
}
)
...
...
This diff is collapsed.
Click to expand it.
unitTesting/CMakeLists.txt
+
5
−
1
View file @
0657e21a
...
@@ -4,7 +4,11 @@
...
@@ -4,7 +4,11 @@
SET
(
tests
SET
(
tests
main
main
signal/test_signal
)
signal/test_signal
signal/test_array
signal/test_depend
signal/test_ptr
signal/test_dep
)
FOREACH
(
test
${
tests
}
)
FOREACH
(
test
${
tests
}
)
GET_FILENAME_COMPONENT
(
EXECUTABLE_NAME
${
test
}
NAME
)
GET_FILENAME_COMPONENT
(
EXECUTABLE_NAME
${
test
}
NAME
)
...
...
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