Skip to content
Snippets Groups Projects
Commit f08c82c0 authored by Olivier Stasse's avatar Olivier Stasse
Browse files

[python] Remove RosJointState from ros.py

parent 72502c98
No related branches found
No related tags found
No related merge requests found
Pipeline #1717 failed
from ros_publish import RosPublish
from ros_subscribe import RosSubscribe
from ros_joint_state import RosJointState
from ros_time import RosTime
from dynamic_graph import plug
......@@ -9,7 +8,6 @@ class Ros(object):
device = None
rosPublish = None
rosSubscribe = None
rosJointState = None
# aliases, for retro compatibility
rosImport = None
......@@ -19,15 +17,10 @@ class Ros(object):
self.robot = robot
self.rosPublish = RosPublish('rosPublish{0}'.format(suffix))
self.rosSubscribe = RosSubscribe('rosSubscribe{0}'.format(suffix))
self.rosJointState = RosJointState('rosJointState{0}'.format(suffix))
self.rosJointState.retrieveJointNames(self.robot.dynamic.name)
self.rosTime = RosTime ('rosTime{0}'.format(suffix))
plug(self.robot.device.state, self.rosJointState.state)
self.robot.device.after.addSignal(
'{0}.trigger'.format(self.rosPublish.name))
self.robot.device.after.addSignal(
'{0}.trigger'.format(self.rosJointState.name))
# aliases, for retro compatibility
self.rosImport=self.rosPublish
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment