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

Rviz problem #1

Closed
haritsahm opened this issue Oct 9, 2017 · 9 comments
Closed

Rviz problem #1

haritsahm opened this issue Oct 9, 2017 · 9 comments

Comments

@haritsahm
Copy link

what is wrong with my rviz? there's no transform from [ ] to [body_link] and the robot display is weird. Thankyou

issues

@kaym9n
Copy link
Member

kaym9n commented Oct 10, 2017

It looks tf message does not exist.
To make tf message need joint states messge from op3_manager. You need to execute op3_manager and check again.
If you couldn't execute op3_manager, modify robotis_op3_display.launch like below and run the launch file. (It's the method to use a fake joint_states.)

<launch>
  <param name="robot_description"
    command="$(find xacro)/xacro.py '$(find robotis_op3_description)/urdf/robotis_op3.urdf.xacro'" />

  <!-- Send fake joint values -->
  <node name="joint_state_publisher" pkg="joint_state_publisher" type="joint_state_publisher">
    <param name="use_gui" value="TRUE"/>
    <rosparam param="/source_list">[/robotis/present_joint_states]</rosparam>
  </node>

  <!-- Combine joint values -->
  <node name="robot_state_publisher" pkg="robot_state_publisher" type="state_publisher"/>

  <!-- Show in Rviz   -->
  <node name="rviz" pkg="rviz" type="rviz" args="-d $(find robotis_op3_description)/launch/op.rviz"/>

</launch>

@haritsahm
Copy link
Author

Hi, after i execute op3_manager, the problem still exist
issues

and here is the tf-tree
tftree

i've tried using other branch but still the robot display is weird

@kaym9n
Copy link
Member

kaym9n commented Oct 12, 2017

I'm sorry in your inconvenience.
Could you refer to this issue(ROBOTIS-GIT/ROBOTIS-OP3#6)?

@haritsahm
Copy link
Author

i don't think the problem is the host name / subscribe topics, because when i run thormang3 or robotis op2 everything works fine. I think the problem is the link or fixed frame, and i don't really understand about rviz or urdf. thank you

@robograffitti
Copy link

robograffitti commented Oct 12, 2017

My result is also missing some parts... (Fixed Frame is set to body_link)

I executed the following 2 commands:

  1. $ roslaunch op3_manager op3_manager.launch
  2. $ roslaunch robotis_op3_description robotis_op3_display.launch

screenshot from 2017-10-12 18-41-03

@kaym9n
Copy link
Member

kaym9n commented Oct 13, 2017

It's my rviz screen.
robotis_op3_rviz

I suspect this issue in terms of network and timing.
(Reference : Timing issues)
I'd recommend you to run the following instructions from the ROBOTIS-OP3 PC.

  1. Connect the keyboard, mouse and monitor to OP3.

  2. Kill the demo
    $ sudo service OP3-demo stop

  3. Execute op3_manager
    $ roslaunch op3_manager op3_manager.launch

  4. Execute robotis_op3_description
    $ roslaunch robotis_op3_description robotis_op3_display.launch

  5. If it works, it's a timing issue.

@haritsahm
Copy link
Author

i actually don't have the OP3 robot. I just want to try the rviz and gazebo, but i will try that and give the result later. Thank you so much

@kaym9n
Copy link
Member

kaym9n commented Oct 17, 2017

I understood.
We still do not fully support gazebo. I hope it will be supported soon.

@robograffitti
Copy link

@haritsahm I resolved this issue by building all the OP3 codes with catkin make. try:

$ roscd && cd ..
$ catkin_make

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