-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/joy teleop #85
Open
JosjaG
wants to merge
18
commits into
master
Choose a base branch
from
feature/joy_teleop
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+140
−0
Open
Changes from 1 commit
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
255e5c5
First version of joy_teleop
MatthijsBurgh 56b7b23
Merge branch 'master' into feature/joy_teleop
JosjaG 72f345c
Added mapping and removed old setup.
JosjaG c0b02cf
Add additional command options for the controller and ensure continuo…
JosjaG 952d10f
Added speaking button.
JosjaG 81051a2
Small cleanup
JosjaG 9663138
Removed redundant namespace.
JosjaG 9914fdc
First version of joy_teleop
MatthijsBurgh cf4904b
Added mapping and removed old setup.
JosjaG a9cf6e9
Added speaking button.
JosjaG 03d1be5
Small cleanup
JosjaG 9720fd5
Merge branch 'master' into feature/joy_teleop
MatthijsBurgh 0c380f5
started cleanup, not tested properly
JosjaG 06b71bb
Merge branch 'feature/joy_teleop' of github.com:tue-robotics/hero_bri…
JosjaG 1fdb3cb
fix: only send base_commands if the user of the joystick wants to
JosjaG 0799f6e
typo: use changed function name when calling
JosjaG 4e264f4
Merge branch 'master' into feature/joy_teleop
JosjaG ce0ca67
working version, tested on the robot, still requires cleaning
JosjaG File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Small cleanup
commit 81051a243f9836b4373869301506bec781c66e9e
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
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
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 |
---|---|---|
|
@@ -4,12 +4,9 @@ import sys | |
|
||
import rospy | ||
import rosnode | ||
import actionlib | ||
from sensor_msgs.msg import Joy | ||
from geometry_msgs.msg import Twist | ||
from sensor_msgs.msg import JointState | ||
from control_msgs.msg import FollowJointTrajectoryAction, FollowJointTrajectoryActionGoal | ||
from tue_manipulation_msgs.msg import GripperCommandAction, GripperCommandActionGoal | ||
from robot_skills.get_robot import get_robot | ||
from robot_skills.arm import arms | ||
|
||
|
@@ -19,11 +16,9 @@ class JoystickControls(object): | |
Subscribes to the Joy messages sent via the controller and the joy node and then transforms these to the desired behavior | ||
""" | ||
self.controller_mode = 4 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Also a class attribute, plus maybe add a short explanation. |
||
# self.map = self.controller_mappings[self.controller_mode] | ||
self.controller_sub = rospy.Subscriber("joy", Joy, self.map_joystick, queue_size=1) | ||
self.gripper_state_sub = rospy.Subscriber("joint_states", JointState, self.get_gripper_state, queue_size=1) | ||
|
||
# Publish to kill all state_machines, to open/close the gripper, to move the base, loaded trajectory/pose, move the end effector | ||
self.base_pub = rospy.Publisher("base/references", Twist, queue_size=1) | ||
self.robot = get_robot('hero') | ||
self.robot_arm = self.robot.get_arm(required_gripper_types=[arms.GripperTypes.GRASPING], required_goals=['show_gripper']) | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only on the robot you want to launch this right?