Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ros parameters missing. #631

Closed
seifmostafa73 opened this issue Mar 3, 2023 · 1 comment
Closed

ros parameters missing. #631

seifmostafa73 opened this issue Mar 3, 2023 · 1 comment

Comments

@seifmostafa73
Copy link

Description

Tried following the "Your First C++ MoveIt Project" but on running my new node it outputs the following :
[ERROR] [1677885102.756933441] [moveit2_unity_node]: Could not find parameter robot_description_semantic and did not receive robot_description_semantic via std_msgs::msg::String subscription within 10.000000 seconds. Parsing robot urdf xml string. Error: Could not parse the SRDF XML File. Error=XML_ERROR_EMPTY_DOCUMENT ErrorID=15 (0xf) Line number=0 at line 694 in /tmp/binarydeb/ros-foxy-srdfdom-2.0.2/src/model.cpp [ERROR] [1677885102.760612081] [moveit_rdf_loader.rdf_loader]: Unable to parse SRDF [FATAL] [1677885102.761152701] [move_group_interface]: Unable to construct robot model. Please make sure all needed information is on the parameter server. terminate called after throwing an instance of 'std::runtime_error' what(): Unable to construct robot model. Please make sure all needed information is on the parameter server.
after some inspection I can see that the node doesn't have the required rosparamters , however, the documentation doesn't state that I should create a launch file or pass in the parameters anywhere else.

this is the exact error mentioned here #528 However the solution for the mentioned issue was to follow the "Humble installation guide" and I followed it , with changing Humble branch with foxy branch in this step git clone https://github.com/ros-planning/moveit2_tutorials -b humble --depth 1 -> git clone https://github.com/ros-planning/moveit2_tutorials -b foxy --depth 1
I'm not aware of any other changes that I should do

Your environment

  • ROS Distro: Foxy
  • OS Version: Ubuntu 20

Steps to reproduce

Follow the exact steps of the https://moveit.picknik.ai/humble/doc/tutorials/your_first_project/your_first_project.html
tille the "Build and run" Section

Expected behaviour

Node runs and robot in Rviz start excuting the planned motion

@seifmostafa73
Copy link
Author

for anyone still facing this in the future , add these paramters into the demo.launch.py in the moveit2_tutorials
"publish_robot_description": True, "publish_robot_description_semantic": True, this was mentioned in another issue but I missed it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant