Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Stack Of Tasks
sot-talos
Commits
eef5b595
Commit
eef5b595
authored
Jan 28, 2019
by
Olivier Stasse
Browse files
Publish state of the robot through RosPublish
parent
f5b28288
Pipeline
#2342
failed with stage
in 1 second
Changes
1
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
tests/appli.py
View file @
eef5b595
...
...
@@ -34,6 +34,13 @@ sot = SOT('sot')
sot
.
setSize
(
robot
.
dynamic
.
getDimension
())
plug
(
sot
.
control
,
robot
.
device
.
control
)
from
dynamic_graph.ros
import
RosPublish
ros_publish_state
=
RosPublish
(
"ros_publish_state"
)
ros_publish_state
.
add
(
"vector"
,
"state"
,
"/sot_control/state"
)
from
dynamic_graph
import
plug
plug
(
robot
.
device
.
state
,
ros_publish_state
.
state
)
robot
.
device
.
after
.
addDownsampledSignal
(
"ros_publish_state.trigger"
,
100
)
#target = (0.5,-0.2,1.0)
#addRobotViewer(robot, small=False)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment