Book: Mastering ROS for Robotics Programming, 2nd Edn; Chapter 4 - Simulating Robot using ROS & Gazebo
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