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

Correct missing imports and syntax in python files #621

Open
wants to merge 2 commits into
base: noetic-devel
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
1 change: 1 addition & 0 deletions rosserial_chibios/src/rosserial_chibios/make_libraries.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
# for copying files
import shutil
import os.path
import sys

ROS_TO_EMBEDDED_TYPES = {
'bool' : ('bool', 1, PrimitiveDataType, []),
Expand Down
2 changes: 1 addition & 1 deletion rosserial_client/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@ install(
)

catkin_install_python(
PROGRAMS scripts/make_libraries src/${PROJECT_NAME}/make_library.py
PROGRAMS scripts/make_libraries.py src/${PROJECT_NAME}/make_library.py
DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
)
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
from rosserial_client.make_library import *

# for copying files
import shutil
import sys
import os.path

ROS_TO_EMBEDDED_TYPES = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
# for copying files
import shutil
import os.path
import sys

ROS_TO_EMBEDDED_TYPES = {
'bool' : ('bool', 1, PrimitiveDataType, []),
Expand Down
1 change: 1 addition & 0 deletions rosserial_mbed/src/rosserial_mbed/make_libraries.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
# for copying files
import shutil
import os.path
import sys

ROS_TO_EMBEDDED_TYPES = {
'bool' : ('bool', 1, PrimitiveDataType, []),
Expand Down
4 changes: 2 additions & 2 deletions rosserial_test/scripts/generate_client_ros_lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@

import rospkg
from rosserial_client.make_library import *
from shutil import copytree
from os import path, sep, walk
import re
import sys

ROS_TO_EMBEDDED_TYPES = {
'bool' : ('bool', 1, PrimitiveDataType, []),
Expand Down Expand Up @@ -49,7 +49,7 @@
# the same name.
for dname, dirs, files in walk(path):
for fname in files:
fpath = os.path.join(dname, fname)
fpath = path.join([dname, fname])
with open(fpath) as f:
s = f.read()
with open(fpath, "w") as f:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
# for copying files
import shutil
import os.path
import sys

ROS_TO_EMBEDDED_TYPES = {
'bool' : ('bool', 1, PrimitiveDataType, []),
Expand Down
1 change: 1 addition & 0 deletions rosserial_vex_v5/src/rosserial_vex_v5/make_libraries.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
# for copying files
import shutil
import os.path
import sys

ROS_TO_EMBEDDED_TYPES = {
'bool' : ('bool', 1, PrimitiveDataType, []),
Expand Down
1 change: 1 addition & 0 deletions rosserial_windows/src/rosserial_windows/make_libraries.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
# for copying files
import shutil
import os.path
import sys

ROS_TO_EMBEDDED_TYPES = {
'bool' : ('bool', 1, PrimitiveDataType, []),
Expand Down
6 changes: 3 additions & 3 deletions rosserial_xbee/scripts/xbee_network.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
client_ports= {}
clients = {}

debug = False;
debug = False

import threading

Expand Down Expand Up @@ -90,8 +90,8 @@ def flushInput(self):
self.rxdata = ''

# Returns the number of bytes available to be read
def inWaiting(self):
return len(self.rxdata)
def inWaiting(self):
return len(self.rxdata)

if __name__== '__main__':
print("RosSerial Xbee Network")
Expand Down