ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

Book: Mastering ROS for Robotics Programming, 2nd Edn; Chapter 4 - Simulating Robot using ROS & Gazebo

asked 2020-03-31 08:44:40 -0500

Shapy gravatar image

updated 2020-04-15 07:34:04 -0500

Hello All!
I am currently trying to learn everything that I can about ROS from the book Mastering ROS for Robotics Programming. I have Ubuntu 18.04 and ROS Melodic on my system and I am currently stuck on the ros_control example for the 7DOF Gazebo arm example. I placed the code as instructed by the book in my catkin workspace and even did a "rosdep update" and "rosdep install" in my workspace's source folder. But when I try to run the example for controlling the 7DOF arm using ros controller, the arm just doesn't move. I am attaching a video I took of my trial. I have tried everything possible from a beginner standpoint. Can someone please guide me as to what I might be doing wrong? Is because the book mentions the use of a different ROS version? Any help is appreciated!
Thanks!

EDIT: Here is the error message

[ERROR] [1586951777.964457457, 0.001000000]: No p gain specified for pid.  Namespace: /seven_dof_arm/gazebo_ros_control/pid_gains/shoulder_pan_joint
[ERROR] [1586951777.968819960, 0.001000000]: No p gain specified for pid.  Namespace: /seven_dof_arm/gazebo_ros_control/pid_gains/shoulder_pitch_joint
[ERROR] [1586951777.972429251, 0.001000000]: No p gain specified for pid.  Namespace: /seven_dof_arm/gazebo_ros_control/pid_gains/elbow_roll_joint
[ERROR] [1586951777.975407246, 0.001000000]: No p gain specified for pid.  Namespace: /seven_dof_arm/gazebo_ros_control/pid_gains/elbow_pitch_joint
[ERROR] [1586951777.979785980, 0.001000000]: No p gain specified for pid.  Namespace: /seven_dof_arm/gazebo_ros_control/pid_gains/wrist_roll_joint
[ERROR] [1586951777.985285690, 0.001000000]: No p gain specified for pid.  Namespace: /seven_dof_arm/gazebo_ros_control/pid_gains/wrist_pitch_joint
[ERROR] [1586951777.990004752, 0.001000000]: No p gain specified for pid.  Namespace: /seven_dof_arm/gazebo_ros_control/pid_gains/gripper_roll_joint
[ERROR] [1586951777.992660154, 0.001000000]: No p gain specified for pid.  Namespace: /seven_dof_arm/gazebo_ros_control/pid_gains/finger_joint1
[ERROR] [1586951777.995815945, 0.001000000]: No p gain specified for pid.  Namespace: /seven_dof_arm/gazebo_ros_control/pid_gains/finger_joint2   


Segmentation fault (core dumped)
[gazebo-2] process has died [pid 15723, exit code 139, cmd /opt/ros/melodic/lib/gazebo_ros/gzserver -e ode worlds/empty.world __name:=gazebo __log:=/home/aditya/.ros/log/084b8b82-7f10-11ea-9115-4cbb582cd2fb/gazebo-2.log].
log file: /home/aditya/.ros/log/084b8b82-7f10-11ea-9115-4cbb582cd2fb/gazebo-2*.log
edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
0

answered 2020-03-31 19:10:12 -0500

Hello,

I think this is more of a gazebo problem rather than a ros problem.

Segmentation fault (core dumped)
[gazebo-2] process has died [pid 16941, exit code 139, cmd /opt/ros/melodic/lib/gazebo_ros/gzserver -e ode...

Segmentation fault is the reason your robot arm doesn’t move. Please see #q249616 for an exhaustive answer. It also provides a tip about searching gazebo-related questions at answers.gazebosim.org.

There is another known issue shown in your terminal.

[Err] [REST.cc:205] Error in REST request

libcurl: (51) SSL: no alternative certificate subject name matches target host name 'api.ignitionfuel.org'

You need to change the URL in ~/.ignition/fuel/config.yaml from https://api.ignitionfuel.org to https://api.ignitionrobotics.org

More details on this issue can be found here and here.

P.S. Could you please copy-paste the error message into your original question, select the lines, and press ctrl+k or click the preformatted text button (the one with 101010 on it)? It will be easier for people to review your problem and comment on it. Thank you.

edit flag offensive delete link more

Comments

@tcchiang I tried your suggestions and sulved the REST error issue but my code always crashes when I try to give command to the ros_controller module. Can u pls guide me how to solve this?

Shapy gravatar image Shapy  ( 2020-04-15 07:11:06 -0500 )edit

Question Tools

2 followers

Stats

Asked: 2020-03-31 08:44:40 -0500

Seen: 238 times

Last updated: Apr 15 '20