Effacer les filtres
Effacer les filtres

when i creat a ros2 node ,it dosn't work.why 'Input data can only contain ASCII characters' ?

39 vues (au cours des 30 derniers jours)
鑫 王
鑫 王 le 19 Juil 2022
Commenté : wei du le 19 Nov 2022
>> test1 = ros2node("/test1")
Error using ros2node/createNode
Error creating the ROS 2 node /test1.
Error in ros2node (line 129)
createNode(obj, parser.Results.name, parser.Results.id);
Caused by:
Error using ros.internal.Node/create
Input data can only contain ASCII characters.
  4 commentaires
Walter Roberson
Walter Roberson le 25 Juil 2022
It works for me when I test with MATLAB Online.
I suspect that you might have a third-party version of some function called by the internal workings. Unfortunately those functions are compiled so I cannot look at the source to figure out what
As an experiment try
restoredefaultpath; rehash toolboxcache
and then try the command. If it works then the problem is in some folder you have added to your path.
鑫 王
鑫 王 le 3 Oct 2022
sorry i didn't see it.thanks for your help,these code help me handle another question.

Connectez-vous pour commenter.

Réponses (1)

Josh Chen
Josh Chen le 5 Août 2022
Hello Xin,
I tried the same command you posted here on my end and it successfully created a ROS 2 node.
As Walter mentioned, the culprit could be some third-party files added to MATLAB path. Please try to restore to default path as suggested.
If the issue still persist, we would need more information about your setup and environment to take a closer inspection. Please reach out to MathWorks Technical Support and get connected with our technical support team.
Thanks,
Josh

Catégories

En savoir plus sur Network Connection and Exploration dans Help Center et File Exchange

Tags

Produits

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by