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

How can i solve the rosmsg index error on MATLAB2023b #229

Open
OsitaRikuto opened this issue May 25, 2024 · 2 comments
Open

How can i solve the rosmsg index error on MATLAB2023b #229

OsitaRikuto opened this issue May 25, 2024 · 2 comments

Comments

@OsitaRikuto
Copy link

Hello, here is RIKUTO.
I'm facing a problem right now.
I'm trying to manipulate xarm6 on matlab.
but the following error occured when generate ROS message using " rosgenmsg " function.
"The index exceeds the number of array elements. Index must not exceed 1."
error
The package used to generate the message is an official package cloned from this site.
I tried the command " clear rosgenmsg " and rosdep, but the error not solved.
Do you have any solution ? I'm in so much trouble.
On another robot arm's ros message, generation ros message is succeeded.
Does anyone have the same case?
Kindly await your help !!
thank you.

@penglongxiang
Copy link
Contributor

Hi @OsitaRikuto, have you made any modifications from our original code? We have no experience with MATLAB ROS supporting functions, but I may infer from the error message and it seems there is a line in certain srv file which some (value) part is missing? Also, have you tried the package can be successfully built in ROS catkin method?

@OsitaRikuto
Copy link
Author

Hi @penglongxiang
Thank you reply,
I have no modifications from this official pakcage.
As a next measure, I would like to copy only the msg and srv directories to other new folders and verify whether this is the case with those folders.
If you don't mind, I would appreciate it if you could let me know if there have been any such cases in the past.
Thanks for your support, I appreciate it. Thanks.

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

No branches or pull requests

2 participants