ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

example for using C++ to program Baxter robot?

asked 2016-05-17 23:34:47 -0600

Zero gravatar image

updated 2016-05-17 23:52:43 -0600

Hi, I'm a beginner in ROS and Baxter. I'm thinking use c++ to program my Baxter robot but I only can found the Python example in Baxter wiki. So may I know where can find those tutorial or like an example to use C++ to program Baxter robot? Thank you!

I want to let the robot able to identify the ball's color then pick up the correct color ball.

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
0

answered 2016-05-18 08:15:23 -0600

AFAIK the SDK and API that Rethink has released only provides Python bindings (likely why you've only seen Python examples). However, the methods that they provide are just using simple ROS topics, services, and actions. If you want to use C++, all you need to do is create publishers, subscribers, and clients that use the appropriate communication channels (just like any other ROS node).

Another idea might include using C++ and Python simultaneously in your project. For example, in C++ you could subscribe to a camera feed and do all of your image processing. Then once you know the location of the correct color ball, you could pass that data along to a Python node (via a topic, action, or service) that uses the Rethink API to handle the arm motions.

edit flag offensive delete link more

Comments

Thank you for your idea! it's really really useful for me!

Zero gravatar image Zero  ( 2016-05-18 19:20:28 -0600 )edit

Hi Jarvisschultz, Can I ask you one more question? If I want to use C++ node to do those image processing and location which was you suggest to me, it's that mean in my C++ node I had to include those relate MoveIt lib? for example, visual tools.

Zero gravatar image Zero  ( 2016-05-23 00:43:24 -0600 )edit

MoveIt! visual tools is not for image processing. I suggest you check out the vision_opencv metapackage for using OpenCV within a ROS node.

jarvisschultz gravatar image jarvisschultz  ( 2016-05-23 07:19:50 -0600 )edit

ok, thank you so much. Your advice always useful for me!

Zero gravatar image Zero  ( 2016-05-23 19:21:03 -0600 )edit
0

answered 2016-05-18 12:02:11 -0600

gvdhoorn gravatar image

It's not maintained anymore, but Dave Coleman wrote the baxter_cpp set of packages.

edit flag offensive delete link more

Comments

ok,thank you so much! But I had one question about the baxter_cpp, the what's MoveIT mean? I mean it's that let user use rviz to control the robot or the rviz was just one of the function?

Zero gravatar image Zero  ( 2016-05-18 19:18:58 -0600 )edit
1

It seems to me that most of what was in the baxter_cpp package is now part of moveit_robots. MoveIt! is a tool for motion planning. It's very cool, but not specifically tied to Baxter. The baxter_cpp package assumes MoveIt usage

jarvisschultz gravatar image jarvisschultz  ( 2016-05-19 09:07:15 -0600 )edit
1

baxter_cpp is a bit more than some ikfast plugins and a moveit configuration. But it's unmaintained, so probably not useful for the OP.

gvdhoorn gravatar image gvdhoorn  ( 2016-05-19 09:24:49 -0600 )edit

ok,thank you for you guy's advice

Zero gravatar image Zero  ( 2016-05-19 19:16:39 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2016-05-17 23:34:47 -0600

Seen: 1,156 times

Last updated: May 18 '16