-
Notifications
You must be signed in to change notification settings - Fork 196
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
GP8 with YRC1000micro Matlab control #308
Comments
The packages in this repository support a regular ROS API for robot drivers (such as a If those can be used from Matlab, you should be able to control the robot. There is no specific support for Matlab here. You'll have to use the same topics, services and actions as you would from a ROS node without Matlab. The easiest would probably be to send a properly setup I don't know whether Matlab supports action clients. If it does, you should be able to duplicate what the example does. If it doesn't, things are going to become more difficult. In any case: only trajectory execution is supported (by default). No direct streaming of jointstates/setpoints. |
As this is not an issue with the packages in this repository (but a configuration/integration issue on the user's side), I'm going to close this. Feel free to keep commenting on the issue of course. |
Some observations:
that is not a valid
This is also not a valid Furthermore, only certain topics in that namespace would publish something. |
@gavanderhoorn Thank you for all your help with this! Yeah, I have been unable to find a suggested workflow for integrating existing ROS industrial workpackages into Matlab and am working on creating one. As pointed out by Safeea and Neto for their Kuka sunrise toolbox having a Matlab interface could enable robotic applications to those with basic Matlab skills, even if they are not programming experts... Thank you again for all your help with this gavanderhoorn! |
Well as I wrote, if Matlab supports A quick Google suggests it does support Be sure to call the |
@gavanderhoorn you are awesome! Thank you so much! Yeah, I think the obstacle is stemming from the need to create ROS custom messages in Matlab (since for example FollowJointTrajectory is not supported by Matlab out-of-the-box), and have been learning about these today. My plan is to implement this tomorrow and will keep you up to date as we progress. Thank you again for all that you do gavanderhoorn! |
Hi, gavanderhoorn:
I think that's because Matlab cannot support type in C++, so we cannot enable robot and sent the message through Matlab. Do you have any idea about that? Thanks, |
That is roughly what it does, yes.
To be precise: no, ROS is not used between the YRC and the ROS PC. A different communications protocol is used there.
If with "type in C++" you are referring to messages/services and/or actions, then I believe there may be a misunderstanding: ROS messages are not specific to any particular language. The
For matlab, you'll have to figure out how to make it use certain messages or services. The specific error message you show seems to indicate that there is no support for std_srvs/Trigger (or you have not configured things correctly). This particular service is part of the Call and Provide ROS Services in the matlab documentation seems to be what you need to do, but with the appropriate service type of course. As I wrote earlier: I have no experience with Matlab and ROS. I just googled for 5 minutes with some keywords. I would recommend you ask Mathworks support to help you in this case. In the end, all you need to do is call a service and submit an action goal (with a trajectory). There is no requirement for C++ (or any other programming language outside of what Matlab can already do). Note that for all of the above to work, you'll still need a Linux machine running |
And just to repeat myself as a form of expectation management:
Don't expect real-time control of the robot (a la simulink/xpc). That's not what the driver allows. |
Thank you @gavanderhoorn, we have reached out to Mathworks and have been working with them, but have been unable to reach a resolution on this. We will keep you up to date as we progress. Thank you again for all your help! |
I'm a bit surprised Mathworks is having such a hard time supporting you in calling a service with a type from |
Has anyone been able to/ seen modern examples of how to control their motoman via matlab?
Currently:
-- robotics toolbox
--ROS toolbox
-GP8 manipulator
Running through the workflow, I am able to make connection with the YRC1000micro and ROS via rosint (confirmed through pinging the robot and executing rosparam list).
Our obstacle is in initiating robot motion, for example when running rostopic /joint_trajectory_action, MATLAB returns The "/joint_trajectory_action" operation is not supported.
Any suggestions? Is their Motoman support in Matlab? For example, like the Kuka sunrise toolbox for the Kuka robots...
The text was updated successfully, but these errors were encountered: