-
-
Notifications
You must be signed in to change notification settings - Fork 68
Update my_robot_rviz.launch #14
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
base: master
Are you sure you want to change the base?
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -8,6 +8,9 @@ | |
|
|
||
| <arg name="rvizconfig" | ||
| default="$(find my_robot_description)/rviz/my_robot.rviz" /> | ||
|
|
||
| <!-- Ktysai necessary to solve NO GUI for joint_state_publisher when using RVIZ --> | ||
| <arg name="use_gui" default="true" doc="Should the joint_state_publisher use a GUI for controlling joint states" /> | ||
|
|
||
| <!-- ###################################################################### --> | ||
|
|
||
|
|
@@ -24,17 +27,31 @@ | |
|
|
||
| <!-- | ||
| Reads the robot model description, finds all joints, and publishes joint values to all nonfixed joints using GUI sliders. | ||
| --> | ||
| --> | ||
Ktysai marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| <node name="joint_state_publisher" | ||
| pkg="joint_state_publisher" | ||
| type="joint_state_publisher" /> | ||
| type="joint_state_publisher" | ||
| output="screen" | ||
| unless="$(arg use_gui)" /> <!-- Ktysai last two lines necessary to solve NO GUI for joint_state_publisher when using RVIZ --> | ||
| <!-- Ktysai node necessary to solve NO GUI for joint_state_publisher when using RVIZ --> | ||
| <node name="joint_state_publisher_gui" | ||
| pkg="joint_state_publisher_gui" | ||
|
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please add in the package.xml file
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is I do like that is no need to mention use_gui here? |
||
| type="joint_state_publisher_gui" | ||
| output="screen" | ||
| if="$(arg use_gui)" /> | ||
|
|
||
|
|
||
| <!-- | ||
| Reads the current robot joint states and publishes the 3D poses of each robot link using the kinematics tree build from the URDF. The 3D pose of the robot is published as ROS tf (transform). | ||
| --> | ||
| <node name="robot_state_publisher" | ||
| pkg="robot_state_publisher" | ||
| type="state_publisher" /> | ||
| type="robot_state_publisher" /> | ||
| <!-- KTYSAI | ||
| put type="robot_state_publisher", in order to make the robot aprear corectly in RVIz and deal with this type of error message: | ||
| "ERROR: cannot launch node of type [robot_state_publisher/state_publisher]: Cannot locate node of type [state_publisher] in package [robot_state_publisher]. | ||
| Make sure file exists in package path and permission is set to executable (chmod +x)" | ||
| --> | ||
|
||
|
|
||
| <!-- Show in Rviz --> | ||
| <node name="rviz" | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No need to add your username in the comments you made. Please remove them.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done!