Skip to content
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

Merged
merged 41 commits into from
Nov 16, 2017
Merged

Add Baxter as a supported robot #18

merged 41 commits into from
Nov 16, 2017

Conversation

ysl208
Copy link
Collaborator

@ysl208 ysl208 commented Oct 16, 2017

No description provided.

@jstnhuang jstnhuang changed the title Baxter Add Baxter as a supported robot Nov 8, 2017
Copy link
Owner

@jstnhuang jstnhuang left a 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.

#include "rapid_pbd/baxter_actions.h"

#include <string>
#include <typeinfo>
Copy link
Owner

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
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Uncomment this.

@@ -76,6 +76,7 @@
ros="[[ros]]"
></ros-action-client>
<div class="paper-material">
<template is="dom-if" if="[[params.manualFreeze]]">
Copy link
Owner

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.

@@ -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") {
Copy link
Owner

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);
Copy link
Owner

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."

ROS_WARN("Waiting for freeze arm service.");

std::string robot("");
bool is_robot_specified = ros::param::get("robot", robot);
Copy link
Owner

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.

positions->clear();
positions->push_back(0.0);
positions->push_back(-0.020833);
// right
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove comments.

positions->clear();
positions->push_back(0.0);
positions->push_back(0.0);
// ,
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove comment.

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;
Copy link
Owner

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.

Copy link
Collaborator Author

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

positions->push_back(0.0);
// ,
}
void BaxterRobotConfig::default_gripper_poses(
Copy link
Owner

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.

Copy link
Collaborator Author

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

@jstnhuang jstnhuang merged commit 10cca46 into indigo-devel Nov 16, 2017
@jstnhuang jstnhuang deleted the baxter branch November 16, 2017 04:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants