-
Notifications
You must be signed in to change notification settings - Fork 3
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
Add Baxter as a supported robot #18
Conversation
…100] and pr2/fetch use meters
…pper handlers back
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.
Almost there, please format everything with clang-format.
src/baxter_actions.cpp
Outdated
#include "rapid_pbd/baxter_actions.h" | ||
|
||
#include <string> | ||
#include <typeinfo> |
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.
Do we still need this?
CMakeLists.txt
Outdated
@@ -441,6 +459,10 @@ install(FILES | |||
config/sensors_dummy.yaml | |||
config/surface_segmentation.yaml | |||
launch/editor.launch | |||
launch/baxter_app.launch | |||
launch/baxter.launch | |||
## launch/baxter_moveit.launch |
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.
Uncomment this.
frontend/src/pbd-action-picker.html
Outdated
@@ -76,6 +76,7 @@ | |||
ros="[[ros]]" | |||
></ros-action-client> | |||
<div class="paper-material"> | |||
<template is="dom-if" if="[[params.manualFreeze]]"> |
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.
Indent the block under here.
frontend/src/pbd-action.html
Outdated
@@ -177,7 +177,13 @@ | |||
_displayActionTypeChanged: function(displayActionType) { | |||
if (displayActionType === 'open gripper') { | |||
this.set('action.type', 'actuate gripper'); | |||
this.set('action.gripper_command.position', 0.1); | |||
// if (this.params.robot === "baxter") { |
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.
Remove the commented-out code.
@@ -144,9 +144,15 @@ | |||
if (robot === 'pr2') { | |||
this.set('params.robot', robot); | |||
this.set('params.hasTwoArms', true); | |||
this.set('params.manualFreeze', true); |
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.
Add a comment like "manualFreeze is true for robots that require buttons in Rapid PbD to relax/freeze the arm. Set manualFreeze to false for robots like the Baxter that can activate gravity compensation by just grasping the wrist."
src/program_executor.cpp
Outdated
ROS_WARN("Waiting for freeze arm service."); | ||
|
||
std::string robot(""); | ||
bool is_robot_specified = ros::param::get("robot", robot); |
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.
Cancel("Robot not specified!") and Finish() if not set.
src/robot_config.cpp
Outdated
positions->clear(); | ||
positions->push_back(0.0); | ||
positions->push_back(-0.020833); | ||
// right |
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.
Remove comments.
src/robot_config.cpp
Outdated
positions->clear(); | ||
positions->push_back(0.0); | ||
positions->push_back(0.0); | ||
// , |
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.
Remove comment.
include/rapid_pbd/robot_config.h
Outdated
std::vector<std::string>* joint_names) const; | ||
void gripper_open_positions(std::vector<double>* positions) const; | ||
void gripper_close_positions(std::vector<double>* positions) const; | ||
void default_gripper_poses(std::vector<double>* poses) const; |
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.
Remove this, looks like it's unused.
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.
Ah sorry, it was used for my condition learning
src/robot_config.cpp
Outdated
positions->push_back(0.0); | ||
// , | ||
} | ||
void BaxterRobotConfig::default_gripper_poses( |
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.
Is this unused? If so, delete it.
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.
Ah sorry, it was used for my condition learning
…dth to Gripper position
No description provided.