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
72502c98
Commit
72502c98
authored
6 years ago
by
Olivier Stasse
Browse files
Options
Downloads
Patches
Plain Diff
[python] Remove python script depending on dynamic-pinocchio.
parent
92699af0
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/dynamic_graph/ros/__init__.py
+0
-30
0 additions, 30 deletions
src/dynamic_graph/ros/__init__.py
with
0 additions
and
30 deletions
src/dynamic_graph/ros/__init__.py
+
0
−
30
View file @
72502c98
from
dynamic_graph.sot.dynamics_pinocchio
import
DynamicPinocchio
from
ros_publish
import
RosPublish
from
ros_subscribe
import
RosSubscribe
from
ros_joint_state
import
RosJointState
from
ros
import
Ros
# aliases, for retro compatibility
from
ros
import
RosPublish
as
RosImport
from
ros
import
RosSubscribe
as
RosExport
class
RosRobotModel
(
DynamicPinocchio
):
def
__init__
(
self
,
name
):
DynamicPinocchio
.
__init__
(
self
,
name
)
self
.
namespace
=
"
sot_controller
"
self
.
jointsParameterName_
=
"
jrl_map
"
def
setJointsNamesParameter
(
self
):
import
rospy
if
self
.
model
is
not
None
:
parameter_name
=
self
.
namespace
+
"
/
"
+
jointsParameterName_
jointsName
=
[]
for
i
in
xrange
(
self
.
model
.
njoints
):
jointsName
.
append
(
self
.
model
.
names
[
i
])
rospy
.
set_param
(
parameter_name
,
jointsName
)
return
def
setNamespace
(
self
,
ns
):
self
.
namespace
=
ns
return
def
curConf
(
self
):
return
self
.
position
.
value
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