xArm-Developer / xarm_ros2

ROS2 developer packages for robotic products from UFACTORY
https://www.ufactory.cc/pages/xarm
BSD 3-Clause "New" or "Revised" License
125 stars 77 forks source link

ROS2 fake environment simulation initial joint state #71

Open DailyNir opened 6 months ago

DailyNir commented 6 months ago

hello, using ros2 humble version and for a while now i am trying to set different joint state for initial simulation in the fake environment without success. i would like some guidance and explanations where would i find it .

my initial state is colliding with my urdf because when the joints are at (0,0,0,0,0,0) they are in a collision state which makes it impossible to continue planning in this environment.

please advise .

vimior commented 6 months ago

@DailyNir

There is no way to set the initial point through configuration without modifying the code to support it.

If your initial point is fixed, you can temporarily modify the configure function in xarm_controller/src/hardware/uf_robot_fake_system_hardware.cpp and set the initial value of position_cmds_ to what you want.

We will study how to support external configuration in the future.