Error evaluating 'InitFcn' callback of block_diagram: block_diagram does not have a parameter named 'SimMechanicsRigidlyBoundBlock'
24 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
cannaphile
el 9 de Dic. de 2022
Respondida: Cai
el 27 de Dic. de 2022
After installing Simulink and ROS Toolbox, I attempted to run the first command from the first tutorial titled "Exploring a ROS Network", found in the "MATLAB and Simulink ROS Tutorials" add-on:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1225707/image.png)
I then received the following error:
Error evaluating 'InitFcn' callback of block_diagram 'RP_ROS_robot'. Callback string is 'RPInit set_param([gcs '/RP ROS™ Robot/Enabled'],'Value','1') RP_ROS2_srv_eStop'
Caused by:
- block_diagram does not have a parameter named 'SimMechanicsRigidlyBoundBlock'
I didn't set up any of the parameters, since I'm following a tutorial. MATLAB, Simulink, and ROS Toolbox are all on the most recent version (R2022b). Could this result from some sort of version compatibility issue, and is there any way I can correct it and continue with the tutorial?
(I came across this older post and also tried installing Robotics Playground just in case that was the cause, but still get the same error.)
Thank you!
Respuesta aceptada
Jose Avendano Arbelaez
el 12 de Dic. de 2022
Here are two things you might want to check on:
- Make sure you have Simscape Multibody installed
- If the probem persists after installing Simscape Multibody, find the Simulink model that contains the Simulation environment and refresh the preferences by doing this:
- >>open_system('RP_ROS_robot')
- Navigate to the "" block and click the small arrow on the lower left corner
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1228327/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1228332/image.png)
- Save and close the model
3 comentarios
Jose Avendano Arbelaez
el 12 de Dic. de 2022
Looks like the tutorials also require Navigation Toolbox. Try installing that also. We will make sure the requirements are updated on the File Exchange page.
Más respuestas (1)
Cai
el 27 de Dic. de 2022
I'd like to share a hint to Chinese Learner.
Do not use Chinese characters in the path of your ROS tutorials.
Then the problems disappear instantly.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1244197/image.png)
0 comentarios
Ver también
Categorías
Más información sobre Network Connection and Exploration en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!