-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
visualization of rosie left arm Jacobian.
- Loading branch information
1 parent
412f808
commit 12c4ebb
Showing
3 changed files
with
46 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<launch> | ||
|
||
<node name="robot_jac" type="robot_jac.py" pkg="motion_viz"> | ||
<remap from="constraint_state" to="/feature_controller/constraint_state"/> | ||
</node> | ||
|
||
<node name="twist_viz" type="twist_viz.py" pkg="motion_viz"> | ||
<remap from="twist" to="/jacobian"/> | ||
<param name="ref_frame" value="base_link"/> | ||
<param name="ref_point" value="base_link"/> | ||
<param name="target_frame" value="left_arm_4_link"/> | ||
<param name="max_length" value="0.3"/> | ||
</node> | ||
|
||
</launch> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#!/usr/bin/python | ||
|
||
# extract the robot Jacobian from constraint state message | ||
|
||
import roslib | ||
roslib.load_manifest('motion_viz') | ||
import rospy | ||
|
||
from motion_viz.msg import Jacobian | ||
from constraint_msgs.msg import ConstraintState | ||
|
||
jac = Jacobian() | ||
|
||
def callback(msg): | ||
jac.columns = msg.robot_jacobian | ||
pub.publish(jac) | ||
|
||
rospy.init_node('robot_jac') | ||
|
||
pub = rospy.Publisher('jacobian', Jacobian) | ||
sub = rospy.Subscriber('constraint_state', ConstraintState, callback) | ||
|
||
rospy.spin() | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters