ros-simulation / gazebo_ros_pkgs

Wrappers, tools and additional API's for using ROS with Gazebo
http://wiki.ros.org/gazebo_ros_pkgs
751 stars 769 forks source link

[ROS2] add -J option to spawn_entity.py node #1233

Open millerluki opened 3 years ago

millerluki commented 3 years ago

Description

In ROS1 it was possible to spawn a crane with different joint values from command line or launch file with the option -J. This feature is missing in ROS2.

For example from command line: In ROS1 it runs with rosrun gazebo_ros spawn_model -urdf -param robot_description -J joint_name 0.7

To Reproduce

see above

Expected behavior

Add argument '-J' to set joint position when spawning the model. In ROS2 it could be similar like this ros2 run gazebo_ros spawn_entity.py -topic robot_description -J joint_name 0.7

Screenshots

If applicable, add screenshots to help explain your problem.

Environment (please complete the following information):

Are there any plans to port this feature to Gazebo11/ROS2 in the next time?

rahulbhadani commented 1 month ago

@millerluki How are you defining robot_description in ROS 2?