Using motoros2 with rviz #251
-
Hi, Now I'm trying to visualize the Motomini in rviz. I am aware that:
Using rviz, I am able to use /tf to visualize the Motomini, but I am unable to get it working together with the URDF. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
it's not actually a requirement, but it would be good to migrate to the non-OEM-specific names, yes. But whether you can will also depend on what the URDF uses/specifies. MotoROS2 allows you to configure the names of all joints, so it doesn't force you to use
to clarify: The To summarise: I understand your confusion, but you still definitely need the
The TF frames broadcast by MotoROS2 will not be sufficient for this purpose. You do absolutely (still) need the I expect your robot will appear as soon as you start a You could take a look at this launch file. You should essentially only need to remove / comment this line for the
As I wrote, MotoROS2 publishes different frames, which are not intended for visualisation purposes. The fact that tree and the one you noticed when using just the RSP and the JSP are different is not what caused the issue you described. And pedantic, but:
With a |
Beta Was this translation helpful? Give feedback.
-
Hello @yongpaulsit, Thanks a lot |
Beta Was this translation helpful? Give feedback.
Thanks for answering. I was having trouble understanding why rviz was only using the
/tf
frommotoros2
and not fromedit:joint_state_publisher
robot_state_publisher
, after reading your response I looked into themotoros2_config.yaml
file and found that I can disablemotoros2
publishing to/tf
. I setpublish_tf
tofalse
and changed the joint names to follow thejoint_1_s
format (not sure if this was necessary).my
motoros2_config.yaml
After updating the config file on YRC1000micro, rviz now shows the Motomini in real time.
Connecting it to my client, I can send joint trajectories.
rqt_graph…