ROS/Gazebo Demos not working

7 ビュー (過去 30 日間)
Jason Butler
Jason Butler 2023 年 4 月 1 日
コメント済み: Jason Butler 2023 年 4 月 4 日
I've tried two of the ROS/Gazebo examples and neither work.
In the case of the pick and place example, Matlab freezes when I get to the step Opening and closing the gripper when I exectute the command
[gripAct,gripGoal] = rosactionclient('/my_gen3/custom_gripper_controller/gripper_cmd');
In the case of the turtle example, I can list the topics
>> rostopic list
/clock
/cmd_vel
/gazebo/link_states
/gazebo/model_states
/gazebo/parameter_descriptions
/gazebo/parameter_updates
/gazebo/set_link_state
/gazebo/set_model_state
/imu
/joint_states
/odom
/rosout
/rosout_agg
/scan
/tf
however when I try to make the robot move nothing happens i.e. the the turtle robot in the Gazebo simulation does not move.
>> robotCmd = rospublisher("/cmd_vel","DataFormat","struct") ;
>> velMsg = rosmessage(robotCmd);
>> velMsg.Linear.X = velocity;
>> send(robotCmd,velMsg)

採用された回答

Hari Krishna Kakarla
Hari Krishna Kakarla 2023 年 4 月 4 日
Hi Jason Butler,
Thank you for reaching out through MATLAB Answers. I see that you opened the 'Gazebo Recycling World". It looks like simulation is not running in Gazebo World. Please click on play button in the Gazebo Simulator and run your workflow.
I hope it should work fine. Please let me know if you still have any issue.
Thanks
Hari
  1 件のコメント
Jason Butler
Jason Butler 2023 年 4 月 4 日
Hi,
I clicked play in Gazebo as you suggested. Now the arm dances a bit to the right then there is no activity I see some warnings and then it freezes. If I pause Matlab its always at the same execption.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeNetwork Connection and Exploration についてさらに検索

タグ

製品


リリース

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by