Skip to content

Commit

Permalink
Publish state of the robot through RosPublish
Browse files Browse the repository at this point in the history
  • Loading branch information
olivier-stasse committed Jan 28, 2019
1 parent f5b2828 commit eef5b59
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/appli.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,13 @@
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)
Expand Down

0 comments on commit eef5b59

Please sign in to comment.