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

How to define Package Name arg #14

Open
gjmm07 opened this issue Aug 16, 2024 · 6 comments
Open

How to define Package Name arg #14

gjmm07 opened this issue Aug 16, 2024 · 6 comments

Comments

@gjmm07
Copy link

gjmm07 commented Aug 16, 2024

Hi,

after completing the installation, I tried to run the example from this video.

ros2 run ros2srrc_execution sequence.py --ros-args -p PROGRAM_FILENAME:="ur3" -p ROBOT_MODEL:="ur3" -p EE_MODEL:="robotiq_2f85" -p GzBr_ENV:="gazebo"

I am receiving this error:

Please execute the program and input all ROS2 parameters in the Ubuntu Terminal as stated below:
COMMAND -> ros2 run ros2srrc_execution sequence.py --ros-args -p PACKAGE_NAME:= "---" -p PROGRAM_FILENAME:="---" -p ROBOT_MODEL:="---" -p EE_MODEL:="---" -p GzBr_ENV:="---"

I'm guessing I have to add the "PACKAGE_NAME" arg. But what options do I have?

There are no options for "PACKAGE_NAME" in the readme

Thanks in advance.

@NilsHeidemann
Copy link

Try 'ros2srrc_execution' as the package name. This is the place where the program 'ur3' lies

@gjmm07
Copy link
Author

gjmm07 commented Aug 28, 2024

Thanks for your answer. This seems to work. What else do I need to launch to start the action server? Something like:
ros2 launch ros2srrc_ur3_gazebo

@NilsHeidemann
Copy link

There were some changes to the launch files and I dont know exactly what the launch command should look like because Im using an older version.
But I looked into the new files and you can try this:
For a real robot: ros2 launch ros2srrc_launch bringup_ur.launch.py
For a simulation: ros2 launch ros2srrc_launch simulation.launch.py

@gjmm07
Copy link
Author

gjmm07 commented Sep 6, 2024

Thanks for your help. I am now able to launch a robot simulation using:
ros2 launch ros2srrc_launch simulation.launch.py package:="ros2srrc_ur3" config:="ur3_2" Gazebo opens as expected, but when trying to
ros2 action send_goal -f /Move ros2srrc_data/action/Move "{action: 'MoveL', movel: {x: 0.00, y: 0.00, z: 0.00}, speed: 1.0}"
I am still getting "Waiting for action server to become available"

@gjmm07
Copy link
Author

gjmm07 commented Sep 6, 2024

What does work though is:
ros2 launch ros2srrc_launch moveit2.launch.py package:="ros2srrc_ur3" config:="ur3_2" (which also launches gazebo)
and
ros2 action send_goal -f /Move ros2srrc_data/action/Move "{action: 'MoveJ', movej: {joint1: 10.00, joint2: 0.00, joint3: 0.00, joint4: 0.00, joint5: 0.00, joint6: 0.00}, speed: 1.0}
which does the job for me.

@MikelBueno
Copy link
Collaborator

Hi,
I have just updated all the README.md files and uploaded instructions and documentation with all the newest features. Please have a look at those, and feel free to send a message if something doesn't work.
Thanks!
Mikel

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

3 participants