Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
D
dynamic_graph_bridge
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
dynamic_graph_bridge
Commits
ea727f7d
Commit
ea727f7d
authored
1 year ago
by
pre-commit-ci[bot]
Committed by
Florent Lamiraux
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see
https://pre-commit.ci
parent
f7f362df
No related branches found
No related tags found
No related merge requests found
Pipeline
#28999
failed
1 year ago
Stage: test
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
src/ros_publish.hxx
+2
-1
2 additions, 1 deletion
src/ros_publish.hxx
src/ros_queued_subscribe.hh
+3
-2
3 additions, 2 deletions
src/ros_queued_subscribe.hh
src/ros_subscribe.hh
+3
-2
3 additions, 2 deletions
src/ros_subscribe.hh
src/ros_subscribe.hxx
+4
-2
4 additions, 2 deletions
src/ros_subscribe.hxx
with
12 additions
and
7 deletions
src/ros_publish.hxx
+
2
−
1
View file @
ea727f7d
...
...
@@ -16,7 +16,8 @@ inline void RosPublish::sendData<std::pair<sot::MatrixHomogeneous, Vector> >(
publisher
,
boost
::
shared_ptr
<
SotToRos
<
std
::
pair
<
sot
::
MatrixHomogeneous
,
Vector
>
>::
signalIn_t
>
signal
,
sigtime_t
time
)
{
signal
,
sigtime_t
time
)
{
SotToRos
<
std
::
pair
<
sot
::
MatrixHomogeneous
,
Vector
>
>::
ros_t
result
;
if
(
publisher
->
trylock
())
{
publisher
->
msg_
.
child_frame_id
=
"/dynamic_graph/world"
;
...
...
This diff is collapsed.
Click to expand it.
src/ros_queued_subscribe.hh
+
3
−
2
View file @
ea727f7d
...
...
@@ -176,8 +176,9 @@ class RosQueuedSubscribe : public dynamicgraph::Entity {
ros
::
NodeHandle
&
nh
()
{
return
nh_
;
}
template
<
typename
R
,
typename
S
>
void
callback
(
boost
::
shared_ptr
<
dynamicgraph
::
SignalPtr
<
S
,
sigtime_t
>
>
signal
,
const
R
&
data
);
void
callback
(
boost
::
shared_ptr
<
dynamicgraph
::
SignalPtr
<
S
,
sigtime_t
>
>
signal
,
const
R
&
data
);
template
<
typename
R
>
void
callbackTimestamp
(
...
...
This diff is collapsed.
Click to expand it.
src/ros_subscribe.hh
+
3
−
2
View file @
ea727f7d
...
...
@@ -71,8 +71,9 @@ class RosSubscribe : public dynamicgraph::Entity {
ros
::
NodeHandle
&
nh
()
{
return
nh_
;
}
template
<
typename
R
,
typename
S
>
void
callback
(
boost
::
shared_ptr
<
dynamicgraph
::
SignalPtr
<
S
,
sigtime_t
>
>
signal
,
const
R
&
data
);
void
callback
(
boost
::
shared_ptr
<
dynamicgraph
::
SignalPtr
<
S
,
sigtime_t
>
>
signal
,
const
R
&
data
);
template
<
typename
R
>
void
callbackTimestamp
(
...
...
This diff is collapsed.
Click to expand it.
src/ros_subscribe.hxx
+
4
−
2
View file @
ea727f7d
...
...
@@ -18,7 +18,8 @@ namespace dg = dynamicgraph;
namespace
dynamicgraph
{
template
<
typename
R
,
typename
S
>
void
RosSubscribe
::
callback
(
boost
::
shared_ptr
<
dynamicgraph
::
SignalPtr
<
S
,
sigtime_t
>
>
signal
,
const
R
&
data
)
{
boost
::
shared_ptr
<
dynamicgraph
::
SignalPtr
<
S
,
sigtime_t
>
>
signal
,
const
R
&
data
)
{
typedef
S
sot_t
;
sot_t
value
;
converter
(
value
,
data
);
...
...
@@ -101,7 +102,8 @@ struct Add<std::pair<T, dg::Vector> > {
RosSubscribe
.
bindedSignal
()[
signal
]
=
bindedSignal
;
// Timestamp.
typedef
dynamicgraph
::
SignalPtr
<
RosSubscribe
::
ptime
,
sigtime_t
>
signalTimestamp_t
;
typedef
dynamicgraph
::
SignalPtr
<
RosSubscribe
::
ptime
,
sigtime_t
>
signalTimestamp_t
;
std
::
string
signalTimestamp
=
(
boost
::
format
(
"%1%%2%"
)
%
signal
%
"Timestamp"
).
str
();
...
...
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