Comments (2)
Hi @mrayh001,
Thank you very much for contacting us.
Unfortunately, ros2_RobotSimulation only supports the ROS2 Robot Triggers defined in ros2_data and ros2_actions packages. These actions use a very simple move_group node, which uses OMPL planning to plan and execute the robot movements (you can find this in any robot_interface.launch.py file, in the move_group node definition).
Thus, moveit2 will complain about some missing information (e.g., joint limits) if you want to execute any complex movement or planner, such as time parametrization (which I can see you are using) or the Pilz Industrial Motion Planner.
However, there is a way to define the joint limits that your execution is complaining about. I cannot guarantee that this will 100% solve your problem, but it will define the acceleration limits for your joints. You need to follow these steps:
- Create a joint_limits.yaml file and include the following inside:
joint_limits:
shoulder_pan_joint:
has_velocity_limits: true
max_velocity: 3.15
has_acceleration_limits: true
max_acceleration: 10.0
shoulder_lift_joint:
has_velocity_limits: true
max_velocity: 3.15
has_acceleration_limits: true
max_acceleration: 10.0
elbow_joint:
has_velocity_limits: true
max_velocity: 3.15
has_acceleration_limits: true
max_acceleration: 10.0
wrist_1_joint:
has_velocity_limits: true
max_velocity: 3.2
has_acceleration_limits: true
max_acceleration: 10.0
wrist_2_joint:
has_velocity_limits: true
max_velocity: 3.2
has_acceleration_limits: true
max_acceleration: 10.0
wrist_3_joint:
has_velocity_limits: true
max_velocity: 3.2
has_acceleration_limits: true
max_acceleration: 10.0
- max_velocity: Values obtained from the URDF file (should check just in case).
- max_acceleration: The higher the acceleration limits, the quicker the robot will move in Gazebo.
- Add the following to the ur5_interface.launch.py file (above the move_group node definition):
# joint_limits.yaml file:
joint_limits_yaml = load_yaml(
"ur5_ros2_moveit2", "config/joint_limits.yaml"
)
joint_limits = {'robot_description_planning': joint_limits_yaml}
- Modify the move_group node definition (add joint_limits):
# move_group node:
run_move_group_node = Node(
package="moveit_ros_move_group",
executable="move_group",
output="screen",
parameters=[
robot_description,
robot_description_semantic,
kinematics_yaml,
joint_limits,
ompl_planning_pipeline_config,
trajectory_execution,
moveit_controllers,
planning_scene_monitor_parameters,
{"use_sim_time": True},
],
)
This will allow you to add information about the joint acceleration limits into the move_group node.
Regards,
Mikel Bueno
IFRA Research Group
Cranfield University
from ros2_robotsimulation.
Hey @mrayh001,
In my case, I have solved it by reinstalling ROS2 Humble, and it shows well now.
from ros2_robotsimulation.
Related Issues (20)
- ros2_actions package colcon build failed HOT 2
- Different Launch error for ROS2 Foxy and Humble HOT 1
- Inquiry for implementation of customized webcam, Stereo ZED camera on robots for this simulator(Gazebo, MoveIt)
- <moveit/move_group_interface/move_group_interface_improved.h> does not exist. HOT 2
- Error building ros_actions in Humble HOT 1
- No module finding named 'ros2_data.ros2_data_s__rosidl_typesupport_c' HOT 6
- error: no matching function for call to βros2_RobotTrigger::declare_parameter(std::string)β 61 | this->declare_parameter(std::string("ROB_PARAM")); HOT 1
- move_group_interface_EEβ was not declared in this scope HOT 3
- file not found, Please input the PROGRAM FILENAME correctly as a ROS2 parameter in the Ubuntu Terminal HOT 1
- Colcon build Error 1 package failed: ros2_actions HOT 7
- rclcpp::exceptions::ParameterNotDeclaredException what(): ROB_PARAM
- ERROR: Loader for controller 'panda_handleft_controller' (type 'position_controllers/GripperActionController') not found.
- Robot and motion planning not appearing in Rviz
- Cant open UR5 in gazebo HOT 1
- Stuck at "waiting for MoveJ action server..." HOT 1
- Having problems with humble no plan execution HOT 10
- ros2_actions package build fails ( humble branch) HOT 5
- All launchs with triggers/action fails ( humble ) HOT 4
- README mistake in humble branch HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ros2_robotsimulation.