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

Moteus rqt plugin #9

Merged
merged 3 commits into from
May 9, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ logs/
build/
bin/
lib/
log/
install/
msg_gen/
srv_gen/
msg/*Action.msg
Expand Down Expand Up @@ -49,3 +51,7 @@ qtcreator-*

# Catkin custom files
CATKIN_IGNORE


#vscode
.vscode/
2 changes: 2 additions & 0 deletions src/meldog_bridge/setup.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import os
from setuptools import setup
from glob import glob

package_name = 'meldog_bridge'

Expand Down
Empty file.
21 changes: 21 additions & 0 deletions src/moteus_plugin/moteus_plugin/moteus_plugin.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/usr/bin/env python3
from qt_gui.plugin import Plugin
from python_qt_binding import loadUi
from python_qt_binding.QtWidgets import QWidget


class MoteusPlugin(Plugin):
def __init__(self, context):
super(MoteusPlugin, self).__init__(context)
# Give QObjects reasonable names
self.setObjectName('MoteusPlugin')
# Create QWidget
self._widget = QWidget()
ui_file = "src/moteus_plugin/moteus_plugin/moteus_plugin.ui"
loadUi(ui_file, self._widget)
# Give QObjects reasonable names
if context.serial_number() > 1:
self._widget.setWindowTitle(
self._widget.windowTitle() + (' (%d)' % context.serial_number()))
# Add widget to the user interface
context.add_widget(self._widget)
Loading