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

rosGenericMsg : invalid type #27

Open
benthebear93 opened this issue Jan 15, 2021 · 16 comments
Open

rosGenericMsg : invalid type #27

benthebear93 opened this issue Jan 15, 2021 · 16 comments
Labels
more-info-needed Waiting on information from reporter

Comments

@benthebear93
Copy link

Hello, i'm trying to run ros_sever with SRS.
ros_sever, ros_libs folder are in this directory "C:\Users\MHM\Documents\Staubli\SRS\ros_test2\Controller1\usr\usrapp"
which is a cell dicrectory.

I opened ros_sever application and used emulator to run
+Disk->ros_server

but error occur and log says "rosGenericMsg: rosGenericMsg : invalid type"

I set the TCP sever two socket (Feedback, Motion) but same error occurs.
same rosGenericMsg error occurs when i tried real robot.

Am i missing something? or is there a problem ?
thx!

@sinamr88
Copy link

sinamr88 commented Jan 15, 2021

Interestingly, I am also facing the same problem now,
Any suggestion is highly appreciated :)

Thanks a lot

@gavanderhoorn
Copy link
Member

Tbh I don't know immediately what would cause this.

Seeing as you're both running into the same problem, perhaps a good first step would be to provide details on:

  • (virtual) controller versions
  • system software versions
  • VAL3 versions
  • how you retrieved a copy of the VAL3 source
  • how you copied the code to the controller / simulation

etc.

The type is defined here: ros-industrial/staubli_val3_driver/staubli_val3_driver/val3/ros_server/ros_server.dtx, so it's definitely provided by the sources.

@benthebear93
Copy link
Author

benthebear93 commented Jan 16, 2021

Sorry for late reply

(virtual) controller versions : CS8 (not sure where i can check in virtual env but my real controller version is CS8)
system software versions : SRS 2019.7.2
VAL3 versions : s7.11.2
how you retrieved a copy of the VAL3 source : I download from this page, and put ros_libs, ros_server folder into usr/usrapp folder which exists in cell location. (I'm not sure i understand your question well..)
how you copied the code to the controller / simulation : for controller, i used FTP surfer to put ros_libs, ros_server into usr/usrapp for controller, and simulation is same as above method

I noticed that when i first start the SRS Cell, 7 error occurs.

datatype 'rosTrajPtMsg': type 'JointTrajPtMsg" is unknown.
datatype 'rosTrajPtFMsg': type 'JointTrajPtFMsg" is unknown.
datatype 'rosStatusMsg': type 'RobotStatusMsg" is unknown.
datatype 'rosJointMsg': type 'JointStateMsg" is unknown.
datatype 'rosTrajFbkMsg': type 'JointFbkMsg" is unknown.
datatype 'rosGenericMsg': type 'RosSimpleMsg" is unknown.
datatype 'qMoveBuffer': type 'Queue" is unknown.

(some spelling might wrong since i translate the korean error msg to english)

and when i tried to run ros_server -> "rosGenericMsg: rosGenericMsg : invalid type" this error.

maybe problem some files from ros_libs ? or i copied wrong place?
(both ros_server folder and ros_libs folder are located C:\Users\MHM\Documents\Staubli\SRS\ros_test2\Controller1\usr\usrapp here)
or do i have to "open application" for all the ros_libs files?

not sure what is the problem at all, i'd appreciate any tips, ideas.
If you need more information to figure out i will give it to you.
thx.

@marshallpowell97
Copy link
Contributor

Hi @benthebear93

I can't seem to recreate the error in SRS. Can you run a syntax check in SRS and show me the output?

image

@benthebear93
Copy link
Author

benthebear93 commented Jan 19, 2021

@marshallpowell97
error_image

here is the error.
I notice that your SRS Cell explorer is little bit different compare to mine.
error_image12

could it be the reason?

@gavanderhoorn
Copy link
Member

@benthebear93: could you please clarify how you downloaded the files of the driver exactly?

If you downloaded any links, please tell us which links.

if you used git, please tell us how.

@benthebear93
Copy link
Author

@gavanderhoorn

i got from this git. using zip file for download to test.
also used git clone to test.

but after you said, i test it again with git clone from readme description and it works.
No error when i used "Check ros_server"
No error using SRS emulator application manager

I didn't really changed anything. I also reused the old files that i used before today but error didn't show too, weird.
thanks for the answers though, if you need any more information i love to answer.

@gavanderhoorn
Copy link
Member

then the same questions about how you checked out the sources for @SinaMirrazavi.

@gavanderhoorn gavanderhoorn added the more-info-needed Waiting on information from reporter label Jan 19, 2021
@gavanderhoorn
Copy link
Member

I'm going to close this.

It seems @benthebear93's problem was resolved.

@SinaMirrazavi: if you're still experiencing problems, please post an update in a comment here.

@sinamr88
Copy link

Sorry for the late reply. I exactly followed the same procedure benthebear93 described and by cloning the repo the problem was sovled.

@gavanderhoorn
Copy link
Member

gavanderhoorn commented Jan 24, 2021

So downloading the .zip didn't work, but git clone-ing it did work?

Did you git clone on Windows? Or on Linux and then copied the files to the Windows machine?

We might need to force Windows line-endings for the VAL 3 sources.

@marshallpowell97: does SRS / the controller require Windows line-endings?

@benthebear93
Copy link
Author

@gavanderhoorn
So i tried to re-generate the error but couldn't

git clone from window (worked)
download .zip from window(worked)
git clone at linux and move to window machine (worked)
download .zip from linux and move to window machine (worked)

it's weird but everything works for me now.

@gavanderhoorn
Copy link
Member

Hm.

Then unless @SinaMirrazavi tries this as well and reports something else, I don't believe we'll be able to figure out what went wrong.

@marshallpowell97
Copy link
Contributor

does SRS / the controller require Windows line-endings?

@gavanderhoorn I don't believe so. If it did, I think we would see more errors than that.

Like you said, the type is provided by the source, so I don't think the problem is in the repo.

@gavanderhoorn
Copy link
Member

Re-opening as it seems others have ran into this now as well.

See #28.

@benthebear93
Copy link
Author

benthebear93 commented Aug 28, 2021

So I encountered same problem today as i tried to change some code in ros_server.
And i took a time to test few things

  • using USB to run ros_server NO WORKING
  • git clone and download .zip both WORKS for
    • using SRS to send the ros_sever&ros_lib to controller and run ros_server WORKING
    • using FTP to send the ros_sever&ros_lib to controller and run ros_server WORKING

i guess using USB dosent work?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
more-info-needed Waiting on information from reporter
Development

No branches or pull requests

4 participants