GithubHelp home page GithubHelp logo

packtpublishing / hands-on-ros-for-robotics-programming Goto Github PK

View Code? Open in Web Editor NEW
42.0 6.0 25.0 145.99 MB

Hands-On ROS for Robotics Programming, published by Packt

License: MIT License

CMake 4.05% Python 13.25% Jupyter Notebook 10.03% C 1.53% C++ 12.47% Makefile 0.04% HTML 55.24% CSS 1.23% JavaScript 2.12% Shell 0.02%

hands-on-ros-for-robotics-programming's Introduction

Hands-On-ROS-for-Robotics-Programming

Hands-On ROS for Robotics Programming, published by Packt

Download a free PDF

If you have already purchased a print or Kindle version of this book, you can get a DRM-free PDF version at no cost.
Simply click on the link to claim your free PDF.

https://packt.link/free-ebook/9781838551308

hands-on-ros-for-robotics-programming's People

Contributors

packt-itservice avatar packtutkarshr avatar swathym14 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

hands-on-ros-for-robotics-programming's Issues

roslaunch cartpole_description main.launch

hello everyone,

iam trying to run the cart-pole_ROS example.

The model does load into Gazebo, but the the simulation does not start...

There are some errors on the terminal I could not solve yet:

lennart@Legion7:~/catkin_ws/src/Chapter11_OpenAI_Gym/cart-pole_ROS/cartpole_dqn/launch$ roslaunch cartpole_description main.launch
... logging to /home/lennart/.ros/log/069a11ac-b9c2-11ec-944c-1902455219a4/roslaunch-Legion7-298056.log
Checking log directory for disk usage. This may take a while.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.

started roslaunch server http://127.0.0.1:38567/

SUMMARY

PARAMETERS

  • /cartpole_v0/foot_joint_velocity_controller/joint: foot_joint
  • /cartpole_v0/foot_joint_velocity_controller/pid/d: 0.0
  • /cartpole_v0/foot_joint_velocity_controller/pid/i: 0.0
  • /cartpole_v0/foot_joint_velocity_controller/pid/p: 1000.0
  • /cartpole_v0/foot_joint_velocity_controller/type: effort_controller...
  • /cartpole_v0/joint_state_controller/publish_rate: 30
  • /cartpole_v0/joint_state_controller/type: joint_state_contr...
  • /cartpole_v0/pole_joint_velocity_controller/joint: cartpole_joint
  • /cartpole_v0/pole_joint_velocity_controller/pid/d: 0.01
  • /cartpole_v0/pole_joint_velocity_controller/pid/i: 0.01
  • /cartpole_v0/pole_joint_velocity_controller/pid/p: 1
  • /cartpole_v0/pole_joint_velocity_controller/type: effort_controller...
  • /cartpole_v0_robot_description: <?xml version="1....
  • /gazebo/enable_ros_network: True
  • /robot_state_publisher_cartpole_v0/ignore_timestamp: True
  • /robot_state_publisher_cartpole_v0/publish_frequency: 5000.0
  • /robot_state_publisher_cartpole_v0/tf_prefix: cartpole_v0
  • /rosdistro: noetic
  • /rosversion: 1.15.14
  • /use_sim_time: True

NODES
/
cartpole_v0_urdf_spawner (gazebo_ros/spawn_model)
controller_spawner (controller_manager/spawner)
gazebo (gazebo_ros/gzserver)
gazebo_gui (gazebo_ros/gzclient)
robot_state_publisher_cartpole_v0 (robot_state_publisher/robot_state_publisher)

auto-starting new master
process[master]: started with pid [298076]
ROS_MASTER_URI=http://localhost:11311

setting /run_id to 069a11ac-b9c2-11ec-944c-1902455219a4
process[rosout-1]: started with pid [298097]
started core service [/rosout]
process[gazebo-2]: started with pid [298104]
process[gazebo_gui-3]: started with pid [298109]
process[cartpole_v0_urdf_spawner-4]: started with pid [298114]
process[robot_state_publisher_cartpole_v0-5]: started with pid [298115]
process[controller_spawner-6]: started with pid [298116]
[ERROR] [1649700353.299936214]: Could not find parameter robot_description on parameter server
[INFO] [1649700353.504808, 0.000000]: Loading model XML from ros parameter cartpole_v0_robot_description
[INFO] [1649700353.506682, 0.000000]: Waiting for service /gazebo/spawn_urdf_model
[INFO] [1649700353.618193, 0.000000]: Controller Spawner: Waiting for service /cartpole_v0/controller_manager/load_controller
[robot_state_publisher_cartpole_v0-5] process has died [pid 298115, exit code 1, cmd /opt/ros/noetic/lib/robot_state_publisher/robot_state_publisher /joint_states:=/cartpole_v0/joint_states __name:=robot_state_publisher_cartpole_v0 __log:=/home/lennart/.ros/log/069a11ac-b9c2-11ec-944c-1902455219a4/robot_state_publisher_cartpole_v0-5.log].
log file: /home/lennart/.ros/log/069a11ac-b9c2-11ec-944c-1902455219a4/robot_state_publisher_cartpole_v0-5
.log
*
[ INFO] [1649700353.805341247]: Finished loading Gazebo ROS API Plugin.
[ INFO] [1649700353.806181481]: waitForService: Service [/gazebo/set_physics_properties] has not been advertised, waiting...
[ INFO] [1649700353.881526718]: Finished loading Gazebo ROS API Plugin.
[ INFO] [1649700353.882544173]: waitForService: Service [/gazebo_gui/set_physics_properties] has not been advertised, waiting...
[ INFO] [1649700354.642185300]: waitForService: Service [/gazebo/set_physics_properties] is now available.
[ INFO] [1649700354.684343414]: Physics dynamic reconfigure ready.
[INFO] [1649700354.712522, 0.000000]: Calling service /gazebo/spawn_urdf_model
[INFO] [1649700354.860746, 0.000000]: Spawn status: SpawnModel: Successfully spawned entity
[ INFO] [1649700354.877280231]: Loading gazebo_ros_control plugin
[ INFO] [1649700354.877352889]: Starting gazebo_ros_control plugin in namespace: /cartpole_v0
[ INFO] [1649700354.877820928]: gazebo_ros_control plugin is waiting for model URDF in parameter [robot_description] on the ROS param server.
[cartpole_v0_urdf_spawner-4] process has finished cleanly
log file: /home/lennart/.ros/log/069a11ac-b9c2-11ec-944c-1902455219a4/cartpole_v0_urdf_spawner-4*.log
[WARN] [1649700383.839445, 0.000000]: Controller Spawner couldn't find the expected controller_manager ROS interface.
[controller_spawner-6] process has finished cleanly
log file: /home/lennart/.ros/log/069a11ac-b9c2-11ec-944c-1902455219a4/controller_spawner-6*.log

I appreciate any kind of advise!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.