Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
T
talos-metapkg-ros-control-sot
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
talos-metapkg-ros-control-sot
Commits
4c5f0495
Commit
4c5f0495
authored
6 years ago
by
Joseph Mirabel
Committed by
Joseph Mirabel
6 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Make display_sot.launch more flexible.
parent
3a299285
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!1
Enhance debugging tools + fix gazebo simulation.
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
roscontrol_sot_talos/launch/display_sot.launch
+7
-4
7 additions, 4 deletions
roscontrol_sot_talos/launch/display_sot.launch
roscontrol_sot_talos/scripts/republish
+12
-2
12 additions, 2 deletions
roscontrol_sot_talos/scripts/republish
with
19 additions
and
6 deletions
roscontrol_sot_talos/launch/display_sot.launch
+
7
−
4
View file @
4c5f0495
<launch>
<node pkg="roscontrol_sot_talos" name="republish" type="republish"/>
<arg name="input_topic" default="/sot_hpp/state"/>
<arg name="output_prefix" default="/sot"/>
<node pkg="roscontrol_sot_talos" name="republish" type="republish" args="$(arg input_topic) $(arg output_prefix)/joint_state"/>
<node pkg="tf" type="static_transform_publisher"
name="base_link_broadcaster"
args="0 0 0 0 0 0 1 base_link
sot
/base_link 100" />
args="0 0 0 0 0 0 1 base_link
$(arg output_prefix)
/base_link 100" />
<node pkg="robot_state_publisher" type="robot_state_publisher" name="rob_st_pub" >
<remap from="/joint_states" to="
/sot
/joint_state" />
<param name="tf_prefix" value="
/sot
" />
<remap from="/joint_states" to="
$(arg output_prefix)
/joint_state" />
<param name="tf_prefix" value="
$(arg output_prefix)
" />
</node>
<node pkg="rviz" type="rviz" name="rviz" />
...
...
This diff is collapsed.
Click to expand it.
roscontrol_sot_talos/scripts/republish
+
12
−
2
View file @
4c5f0495
...
...
@@ -3,9 +3,19 @@
import
rospy
from
dynamic_graph_bridge_msgs.msg
import
Vector
from
sensor_msgs.msg
import
JointState
import
sys
if
len
(
sys
.
argv
)
>
1
:
input_topic
=
sys
.
argv
[
1
]
if
len
(
sys
.
argv
)
>
2
:
output_topic
=
sys
.
argv
[
2
]
else
:
output_topic
=
"
/sot/joint_state
"
else
:
input_topic
=
"
/sot_hpp/state
"
rospy
.
init_node
(
'
sot_reemitter
'
,
anonymous
=
True
)
pub
=
rospy
.
Publisher
(
'
/sot/joint_state
'
,
JointState
,
queue_size
=
10
)
pub
=
rospy
.
Publisher
(
output_topic
,
JointState
,
queue_size
=
10
)
seqnb
=
0
aJS
=
JointState
()
...
...
@@ -25,7 +35,7 @@ def jointreceived(jstates):
pub
.
publish
(
aJS
)
def
listener
():
rospy
.
Subscriber
(
"
/sot_hpp/state
"
,
Vector
,
jointreceived
)
rospy
.
Subscriber
(
input_topic
,
Vector
,
jointreceived
)
rospy
.
spin
()
if
__name__
==
'
__main__
'
:
...
...
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