sot-talos-balance
2.0.5
Collection of dynamic-graph entities aimed at implementing balance control on talos.
script_test_end_effector.py
Go to the documentation of this file.
1
import
rospy
2
from
gazebo_msgs.srv
import
ApplyBodyWrench
3
from
geometry_msgs.msg
import
Wrench
4
5
rospy.wait_for_service(
"/gazebo/apply_body_wrench"
)
6
apply_body_wrench_proxy = rospy.ServiceProxy(
7
"/gazebo/apply_body_wrench"
, ApplyBodyWrench
8
)
9
wrench = Wrench()
10
wrench.force.x = 15.0
11
wrench.force.y = 0.0
12
wrench.force.z = 0.0
13
wrench.torque.x = 0.0
14
wrench.torque.y = 0.0
15
wrench.torque.z = 0.0
16
duration = -1
17
apply_body_wrench_proxy
(
18
body_name=
"arm_right_7_link"
, wrench=wrench, duration=rospy.Duration(duration)
19
)
sot_talos_balance.test.script_test_end_effector.apply_body_wrench_proxy
apply_body_wrench_proxy
Definition:
script_test_end_effector.py:6
src
dynamic_graph
sot_talos_balance
test
script_test_end_effector.py
Generated by
1.8.17