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

renaming CanTalk --> cantalk and CanDapter to candapter #1

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open
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
File renamed without changes.
10 changes: 5 additions & 5 deletions CanTalk/CanDapter.py → cantalk/candapter.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@ def get_baud_rate_command(rate: int):
return command


class CanDapter(Node):
class candapter(Node):
def __init__(self):
super().__init__('CanDapter_node')
super().__init__('candapter_node')

self.declare_parameters(
namespace='',
Expand Down Expand Up @@ -102,7 +102,7 @@ def __init__(self):
self.serial_thread.start()

def can_send_callback(self, msg):
if msg.header.frame_id == 'CanDapter_node':
if msg.header.frame_id == 'candapter_node':
return

self.send_command(
Expand Down Expand Up @@ -154,7 +154,7 @@ def can_frame_to_can_stamped(self, frame):
"""

can_stamped = CANStamped()
can_stamped.header.frame_id = 'CanDapter_node'
can_stamped.header.frame_id = 'candapter_node'
can_stamped.header.stamp = self.get_clock().now().to_msg()
can_stamped.can.id = frame[0]
can_stamped.can.data = frame[2]
Expand All @@ -176,7 +176,7 @@ def send_command_with_response(self, command: bytes):

def main(args=None):
rclpy.init(args=args)
node = CanDapter()
node = candapter()
rclpy.spin(node)
node.send_command(b'C')
node.destroy_node()
Expand Down
2 changes: 1 addition & 1 deletion package.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0"?>
<?xml-model href="http://download.ros.org/schema/package_format3.xsd" schematypens="http://www.w3.org/2001/XMLSchema"?>
<package format="3">
<name>CanTalk</name>
<name>cantalk</name>
<version>0.0.0</version>
<description>TODO: Package description</description>
<maintainer email="[email protected]">chris</maintainer>
Expand Down
Empty file removed resource/CanTalk
Empty file.
1 change: 1 addition & 0 deletions resource/cantalk
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import os
from glob import glob

package_name = 'CanTalk'
package_name = 'cantalk'

setup(
name=package_name,
Expand All @@ -24,7 +24,7 @@
tests_require=['pytest'],
entry_points={
'console_scripts': [
'candapter_node = CanTalk.CanDapter:main'
'candapter_node = cantalk.candapter:main'
],
},
)